Home | History | Annotate | Download | only in input_method

Lines Matching refs:ids

378   std::vector<std::string> ids;
379 ids.push_back("xkb:us:dvorak:eng");
380 ids.push_back("xkb:us:colemak:eng");
381 EXPECT_TRUE(manager_->EnableInputMethods(ids));
383 // Since all the IDs added avobe are keyboard layouts, Start() should not be
387 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
390 ids.erase(ids.begin());
391 EXPECT_TRUE(manager_->EnableInputMethods(ids));
394 EXPECT_EQ(ids[0], // colemak
407 std::vector<std::string> ids;
408 ids.push_back("xkb:us::eng");
409 ids.push_back("xkb:us:dvorak:eng");
410 ids.push_back("xkb:us:colemak:eng");
411 EXPECT_TRUE(manager_->EnableInputMethods(ids));
414 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
419 EXPECT_EQ(ids[1], manager_->GetCurrentInputMethod().id());
422 ids.erase(ids.begin() + 1);
423 EXPECT_TRUE(manager_->EnableInputMethods(ids));
426 EXPECT_EQ(ids[0], // US Qwerty
439 std::vector<std::string> ids;
440 ids.push_back("xkb:us:dvorak:eng");
441 ids.push_back(nacl_mozc_us_id);
442 EXPECT_TRUE(manager_->EnableInputMethods(ids));
445 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
450 EXPECT_EQ(ids[1], manager_->GetCurrentInputMethod().id());
453 ids.erase(ids.begin() + 1);
454 EXPECT_TRUE(manager_->EnableInputMethods(ids));
456 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
475 std::vector<std::string> ids;
476 ids.push_back("xkb:us:dvorak:eng");
477 ids.push_back(nacl_mozc_us_id);
478 EXPECT_TRUE(manager_->EnableInputMethods(ids));
481 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
485 ids.erase(ids.begin());
486 EXPECT_TRUE(manager_->EnableInputMethods(ids));
488 EXPECT_EQ(ids[0], // Mozc
500 std::vector<std::string> ids;
501 ids.push_back("_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabext2_engine1_engine_id");
502 ids.push_back("mozc-dv");
503 EXPECT_TRUE(manager_->EnableInputMethods(ids));
506 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
515 std::vector<std::string> ids;
516 ids.push_back("xkb:tl::tlh"); // Klingon, which is not supported.
517 ids.push_back("unknown-super-cool-ime");
518 EXPECT_FALSE(manager_->EnableInputMethods(ids));
534 std::vector<std::string> ids;
535 ids.push_back("xkb:us::eng");
536 ids.push_back("xkb:us:dvorak:eng");
537 EXPECT_TRUE(manager_->EnableInputMethods(ids));
540 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
546 EXPECT_EQ(ids[1], manager_->GetCurrentInputMethod().id());
552 EXPECT_EQ(ids[1], // still Dvorak
557 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
563 EXPECT_EQ(ids[1], manager_->GetCurrentInputMethod().id());
576 std::vector<std::string> ids;
577 ids.push_back("xkb:us:dvorak:eng");
578 ids.push_back("_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabext2_engine2_engine_id");
579 ids.push_back("_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabext2_engine1_engine_id");
580 EXPECT_TRUE(manager_->EnableInputMethods(ids));
583 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
589 EXPECT_EQ(ids[1], manager_->GetCurrentInputMethod().id());
609 EXPECT_EQ(ids[1], manager_->GetCurrentInputMethod().id());
620 std::vector<std::string> ids;
621 ids.push_back("xkb:us:dvorak:eng");
622 ids.push_back("xkb:us:colemak:eng");
623 ids.push_back(nacl_mozc_jp_id);
624 ids.push_back(nacl_mozc_us_id);
625 EXPECT_TRUE(manager_->EnableInputMethods(ids));
643 ids.erase(ids.begin());
644 EXPECT_TRUE(manager_->EnableInputMethods(ids));
665 std::vector<std::string> ids;
666 ids.push_back("xkb:us::eng");
667 ids.push_back(nacl_mozc_us_id);
668 EXPECT_TRUE(manager_->EnableInputMethods(ids));
700 std::vector<std::string> ids;
701 ids.push_back(nacl_mozc_us_id); // Japanese
702 ids.push_back("_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabext2_engine1_engine_id"); // T-Chinese
703 EXPECT_TRUE(manager_->EnableInputMethods(ids));
837 std::vector<std::string> ids;
838 ids.push_back("xkb:us:dvorak:eng");
839 EXPECT_TRUE(manager_->EnableInputMethods(ids));
923 std::vector<std::string> ids;
924 ids.push_back("xkb:jp::jpn");
925 ids.push_back(nacl_mozc_jp_id);
926 EXPECT_TRUE(manager_->EnableInputMethods(ids));
955 ids.push_back("xkb:us:dvorak:eng");
956 EXPECT_TRUE(manager_->EnableInputMethods(ids));
975 std::vector<std::string> ids;
976 ids.push_back("xkb:us:dvorak:eng");
977 EXPECT_TRUE(manager_->EnableInputMethods(ids));
981 EXPECT_EQ(ids[0],
1059 std::vector<std::string> ids;
1060 ids.push_back("xkb:us::eng");
1061 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1064 EXPECT_EQ(ids[0], manager_->GetCurrentInputMethod().id());
1126 std::vector<std::string> ids;
1127 ids.push_back("xkb:us::eng");
1128 ids.push_back(nacl_mozc_us_id);
1129 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1145 std::vector<std::string> ids;
1146 ids.push_back(nacl_mozc_us_id);
1147 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1160 std::vector<std::string> ids;
1161 ids.push_back(nacl_mozc_us_id);
1162 ids.push_back(nacl_mozc_jp_id);
1163 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1181 std::vector<std::string> ids;
1182 ids.push_back(ext_id);
1183 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1204 std::vector<std::string> ids;
1205 ids.push_back(ext_id1);
1206 ids.push_back(ext_id2);
1207 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1227 std::vector<std::string> ids;
1228 ids.push_back(ext_id);
1229 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1248 std::vector<std::string> ids;
1249 ids.push_back(ext_id1);
1250 ids.push_back(ext_id2);
1251 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1291 std::vector<std::string> ids;
1292 ids.push_back(xkb_id);
1293 ids.push_back(ime_id);
1294 EXPECT_TRUE(manager_->EnableInputMethods(ids));
1323 std::vector<std::string> ids;
1324 ids.push_back(xkb_id);
1325 ids.push_back(ime_id);
1326 EXPECT_TRUE(manager_->EnableInputMethods(ids));