OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/ime/xkeyboard.h" | 5 #include "chromeos/ime/xkeyboard.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 #include <X11/Xlib.h> | 16 #include <X11/Xlib.h> |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 namespace input_method { | 19 namespace input_method { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 class XKeyboardTest : public testing::Test { | 23 class XKeyboardTest : public testing::Test { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 // Restore the initial state. | 202 // Restore the initial state. |
203 EXPECT_TRUE(XKeyboard::SetAutoRepeatRate(rate)); | 203 EXPECT_TRUE(XKeyboard::SetAutoRepeatRate(rate)); |
204 EXPECT_TRUE(XKeyboard::GetAutoRepeatRateForTesting(&tmp)); | 204 EXPECT_TRUE(XKeyboard::GetAutoRepeatRateForTesting(&tmp)); |
205 EXPECT_EQ(rate.initial_delay_in_ms, tmp.initial_delay_in_ms); | 205 EXPECT_EQ(rate.initial_delay_in_ms, tmp.initial_delay_in_ms); |
206 EXPECT_EQ(rate.repeat_interval_in_ms, tmp.repeat_interval_in_ms); | 206 EXPECT_EQ(rate.repeat_interval_in_ms, tmp.repeat_interval_in_ms); |
207 } | 207 } |
208 | 208 |
209 } // namespace input_method | 209 } // namespace input_method |
210 } // namespace chromeos | 210 } // namespace chromeos |
OLD | NEW |