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

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

Issue 584513003: Move extension_test_message_listener to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 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 "chrome/browser/apps/app_browsertest_util.h" 5 #include "chrome/browser/apps/app_browsertest_util.h"
6 #include "chrome/browser/extensions/extension_test_message_listener.h" 6 #include "extensions/test/extension_test_message_listener.h"
7 7
8 // This class of BrowserTests is a helper to create tests related to crashes in 8 // This class of BrowserTests is a helper to create tests related to crashes in
9 // Chrome Apps. To be tested, the app will have to be placed as any other test 9 // Chrome Apps. To be tested, the app will have to be placed as any other test
10 // app (see PlatformAppBrowserTest) and will need to send a "Done" message back. 10 // app (see PlatformAppBrowserTest) and will need to send a "Done" message back.
11 // When the "Done" message is received, the test succeed. If it is not, it is 11 // When the "Done" message is received, the test succeed. If it is not, it is
12 // assumed that Chrome has crashed and the test will anyway fail. 12 // assumed that Chrome has crashed and the test will anyway fail.
13 // 13 //
14 // The entry in this file should be something like: 14 // The entry in this file should be something like:
15 // IN_PROC_BROWSER_TEST_F(AppCrashTest, <TEST_NAME>) { 15 // IN_PROC_BROWSER_TEST_F(AppCrashTest, <TEST_NAME>) {
16 // ASSERT_TRUE(RunAppCrashTest("<DIRECTORY_TEST_NAME>")); 16 // ASSERT_TRUE(RunAppCrashTest("<DIRECTORY_TEST_NAME>"));
17 // } 17 // }
18 18
19 class AppCrashTest : public extensions::PlatformAppBrowserTest { 19 class AppCrashTest : public extensions::PlatformAppBrowserTest {
20 public: 20 public:
21 void RunAppCrashTest(const char* name) { 21 void RunAppCrashTest(const char* name) {
22 LoadAndLaunchPlatformApp(name, "Done"); 22 LoadAndLaunchPlatformApp(name, "Done");
23 } 23 }
24 }; 24 };
25 25
26 IN_PROC_BROWSER_TEST_F(AppCrashTest, HiddenWindows) { 26 IN_PROC_BROWSER_TEST_F(AppCrashTest, HiddenWindows) {
27 RunAppCrashTest("crashtest_hidden_windows"); 27 RunAppCrashTest("crashtest_hidden_windows");
28 } 28 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_browsertest_util.cc ('k') | chrome/browser/apps/app_pointer_lock_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698