forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mozc-2.20.2673.102-tests_skipping.patch
70 lines (68 loc) · 2.04 KB
/
mozc-2.20.2673.102-tests_skipping.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Disable test leaving mozc_server orphan process.
--- /src/unix/ibus/mozc_engine_test.cc
+++ /src/unix/ibus/mozc_engine_test.cc
@@ -41,65 +41,5 @@
namespace mozc {
namespace ibus {
-class LaunchToolTest : public testing::Test {
- public:
- LaunchToolTest() {
- g_type_init();
- }
-
- protected:
- virtual void SetUp() {
- mozc_engine_.reset(new MozcEngine());
-
- mock_ = new client::ClientMock();
- mock_->ClearFunctionCounter();
- mozc_engine_->client_.reset(mock_);
- }
-
- virtual void TearDown() {
- mozc_engine_.reset();
- }
-
- client::ClientMock* mock_;
- unique_ptr<MozcEngine> mozc_engine_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(LaunchToolTest);
-};
-
-TEST_F(LaunchToolTest, LaunchToolTest) {
- commands::Output output;
-
- // Launch config dialog
- mock_->ClearFunctionCounter();
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
- output.set_launch_tool_mode(commands::Output::CONFIG_DIALOG);
- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
-
- // Launch dictionary tool
- mock_->ClearFunctionCounter();
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
- output.set_launch_tool_mode(commands::Output::DICTIONARY_TOOL);
- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
-
- // Launch word register dialog
- mock_->ClearFunctionCounter();
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
- output.set_launch_tool_mode(commands::Output::WORD_REGISTER_DIALOG);
- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
-
- // Launch no tool(means do nothing)
- mock_->ClearFunctionCounter();
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", false);
- output.set_launch_tool_mode(commands::Output::NO_TOOL);
- EXPECT_FALSE(mozc_engine_->LaunchTool(output));
-
- // Something occurring in client::Client::LaunchTool
- mock_->ClearFunctionCounter();
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", false);
- output.set_launch_tool_mode(commands::Output::CONFIG_DIALOG);
- EXPECT_FALSE(mozc_engine_->LaunchTool(output));
-}
-
} // namespace ibus
} // namespace mozc