OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/callback.h" | 5 #include "base/callback.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "chrome/browser/apps/app_browsertest_util.h" | 9 #include "chrome/browser/apps/app_browsertest_util.h" |
10 #include "chrome/test/base/interactive_test_utils.h" | 10 #include "chrome/test/base/interactive_test_utils.h" |
| 11 #include "components/version_info/version_info.h" |
11 #include "extensions/browser/app_window/native_app_window.h" | 12 #include "extensions/browser/app_window/native_app_window.h" |
12 #include "extensions/test/extension_test_message_listener.h" | 13 #include "extensions/test/extension_test_message_listener.h" |
13 #include "testing/gtest/include/gtest/gtest-spi.h" | 14 #include "testing/gtest/include/gtest/gtest-spi.h" |
14 | 15 |
15 using extensions::NativeAppWindow; | 16 using extensions::NativeAppWindow; |
16 | 17 |
17 class AppWindowInterceptAllKeysTest | 18 class AppWindowInterceptAllKeysTest |
18 : public extensions::PlatformAppBrowserTest { | 19 : public extensions::PlatformAppBrowserTest { |
19 public: | 20 public: |
20 // Send key to window but does not wait till the key is actually in the input | 21 // Send key to window but does not wait till the key is actually in the input |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 new ExtensionTestMessageListener(current_event->result[i], false)); | 356 new ExtensionTestMessageListener(current_event->result[i], false)); |
356 } | 357 } |
357 ASSERT_TRUE(SimulateKeyPress(current_event->key, current_event->control, | 358 ASSERT_TRUE(SimulateKeyPress(current_event->key, current_event->control, |
358 current_event->shift, current_event->alt, | 359 current_event->shift, current_event->alt, |
359 current_event->command)); | 360 current_event->command)); |
360 for (int i = 0; i < current_event->result_length; i++) { | 361 for (int i = 0; i < current_event->result_length; i++) { |
361 EXPECT_TRUE(listeners[i]->WaitUntilSatisfied()); | 362 EXPECT_TRUE(listeners[i]->WaitUntilSatisfied()); |
362 } | 363 } |
363 } | 364 } |
364 } | 365 } |
OLD | NEW |