Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Side by Side Diff: chrome/browser/apps/app_window_intercept_all_keys_uitest.cc

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm ('k') | chrome/browser/autofill/risk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698