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

Side by Side Diff: chrome/browser/apps/event_page_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"
7 #include "content/public/browser/notification_service.h" 6 #include "content/public/browser/notification_service.h"
8 #include "content/public/test/browser_test.h" 7 #include "content/public/test/browser_test.h"
9 #include "content/public/test/test_utils.h" 8 #include "content/public/test/test_utils.h"
10 #include "extensions/browser/notification_types.h" 9 #include "extensions/browser/notification_types.h"
10 #include "extensions/test/extension_test_message_listener.h"
11 11
12 using extensions::Extension; 12 using extensions::Extension;
13 using extensions::PlatformAppBrowserTest; 13 using extensions::PlatformAppBrowserTest;
14 14
15 namespace { 15 namespace {
16 16
17 class AppEventPageTest : public PlatformAppBrowserTest { 17 class AppEventPageTest : public PlatformAppBrowserTest {
18 protected: 18 protected:
19 void TestUnloadEventPage(const char* app_path) { 19 void TestUnloadEventPage(const char* app_path) {
20 // Load and launch the app. 20 // Load and launch the app.
(...skipping 22 matching lines...) Expand all
43 IN_PROC_BROWSER_TEST_F(AppEventPageTest, OnSuspendNoApiUse) { 43 IN_PROC_BROWSER_TEST_F(AppEventPageTest, OnSuspendNoApiUse) {
44 TestUnloadEventPage("event_page/suspend_simple"); 44 TestUnloadEventPage("event_page/suspend_simple");
45 } 45 }
46 46
47 // Tests that an app's event page will eventually be unloaded. The onSuspend 47 // Tests that an app's event page will eventually be unloaded. The onSuspend
48 // event handler of this app calls a chrome.storage API function. 48 // event handler of this app calls a chrome.storage API function.
49 // See: http://crbug.com/296834 49 // See: http://crbug.com/296834
50 IN_PROC_BROWSER_TEST_F(AppEventPageTest, OnSuspendUseStorageApi) { 50 IN_PROC_BROWSER_TEST_F(AppEventPageTest, OnSuspendUseStorageApi) {
51 TestUnloadEventPage("event_page/suspend_storage_api"); 51 TestUnloadEventPage("event_page/suspend_storage_api");
52 } 52 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/ephemeral_app_launcher_browsertest.cc ('k') | chrome/browser/apps/web_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698