1 Disable test leaving mozc_server orphan process.
3 --- /src/unix/ibus/mozc_engine_test.cc
4 +++ /src/unix/ibus/mozc_engine_test.cc
9 -class LaunchToolTest : public testing::Test {
16 - virtual void SetUp() {
17 - mozc_engine_.reset(new MozcEngine());
19 - mock_ = new client::ClientMock();
20 - mock_->ClearFunctionCounter();
21 - mozc_engine_->client_.reset(mock_);
24 - virtual void TearDown() {
25 - mozc_engine_.reset();
28 - client::ClientMock* mock_;
29 - unique_ptr<MozcEngine> mozc_engine_;
32 - DISALLOW_COPY_AND_ASSIGN(LaunchToolTest);
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));