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 <stddef.h> |
| 6 |
5 #include <string> | 7 #include <string> |
6 | 8 |
7 #include "base/basictypes.h" | |
8 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" |
9 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
10 #include "chrome/browser/chromeos/events/keyboard_driven_event_rewriter.h" | 12 #include "chrome/browser/chromeos/events/keyboard_driven_event_rewriter.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/events/event.h" | 14 #include "ui/events/event.h" |
13 | 15 |
14 namespace chromeos { | 16 namespace chromeos { |
15 | 17 |
16 class KeyboardDrivenEventRewriterTest : public testing::Test { | 18 class KeyboardDrivenEventRewriterTest : public testing::Test { |
17 public: | 19 public: |
18 KeyboardDrivenEventRewriterTest() {} | 20 KeyboardDrivenEventRewriterTest() {} |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 EXPECT_EQ(GetExpectedResultAsString(ui::EF_NONE, | 108 EXPECT_EQ(GetExpectedResultAsString(ui::EF_NONE, |
107 ui::EVENT_REWRITE_REWRITTEN), | 109 ui::EVENT_REWRITE_REWRITTEN), |
108 GetRewrittenEventAsString(kTests[i].ui_keycode, | 110 GetRewrittenEventAsString(kTests[i].ui_keycode, |
109 kTests[i].ui_flags, | 111 kTests[i].ui_flags, |
110 ui::ET_KEY_PRESSED)) | 112 ui::ET_KEY_PRESSED)) |
111 << "Test case " << i; | 113 << "Test case " << i; |
112 } | 114 } |
113 } | 115 } |
114 | 116 |
115 } // namespace chromeos | 117 } // namespace chromeos |
OLD | NEW |