net-misc/rustdesk: update deps
[gentoo-zh.git] / app-i18n / mozc / files / mozc-2.20.2673.102-tests_skipping.patch
blob28c5486de50d45ff8c97e5224811ddf6b40090a4
1 Disable test leaving mozc_server orphan process.
3 --- /src/unix/ibus/mozc_engine_test.cc
4 +++ /src/unix/ibus/mozc_engine_test.cc
5 @@ -41,65 +41,5 @@
6 namespace mozc {
7 namespace ibus {
9 -class LaunchToolTest : public testing::Test {
10 - public:
11 - LaunchToolTest() {
12 - g_type_init();
13 - }
15 - protected:
16 - virtual void SetUp() {
17 - mozc_engine_.reset(new MozcEngine());
19 - mock_ = new client::ClientMock();
20 - mock_->ClearFunctionCounter();
21 - mozc_engine_->client_.reset(mock_);
22 - }
24 - virtual void TearDown() {
25 - mozc_engine_.reset();
26 - }
28 - client::ClientMock* mock_;
29 - unique_ptr<MozcEngine> mozc_engine_;
31 - private:
32 - DISALLOW_COPY_AND_ASSIGN(LaunchToolTest);
33 -};
35 -TEST_F(LaunchToolTest, LaunchToolTest) {
36 - commands::Output output;
38 - // Launch config dialog
39 - mock_->ClearFunctionCounter();
40 - mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
41 - output.set_launch_tool_mode(commands::Output::CONFIG_DIALOG);
42 - EXPECT_TRUE(mozc_engine_->LaunchTool(output));
44 - // Launch dictionary tool
45 - mock_->ClearFunctionCounter();
46 - mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
47 - output.set_launch_tool_mode(commands::Output::DICTIONARY_TOOL);
48 - EXPECT_TRUE(mozc_engine_->LaunchTool(output));
50 - // Launch word register dialog
51 - mock_->ClearFunctionCounter();
52 - mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
53 - output.set_launch_tool_mode(commands::Output::WORD_REGISTER_DIALOG);
54 - EXPECT_TRUE(mozc_engine_->LaunchTool(output));
56 - // Launch no tool(means do nothing)
57 - mock_->ClearFunctionCounter();
58 - mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", false);
59 - output.set_launch_tool_mode(commands::Output::NO_TOOL);
60 - EXPECT_FALSE(mozc_engine_->LaunchTool(output));
62 - // Something occurring in client::Client::LaunchTool
63 - mock_->ClearFunctionCounter();
64 - mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", false);
65 - output.set_launch_tool_mode(commands::Output::CONFIG_DIALOG);
66 - EXPECT_FALSE(mozc_engine_->LaunchTool(output));
69 } // namespace ibus
70 } // namespace mozc