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

Side by Side Diff: chrome/browser/apps/app_browsertest_util.h

Issue 2525563003: mash: Change CastConfigDelegate to a mojoified CastConfigClient. (Closed)
Patch Set: move dep to chromeos section Created 4 years 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
« no previous file with comments | « ash/test/tray_cast_test_api.cc ('k') | chrome/browser/apps/app_browsertest_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_
6 #define CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ 6 #define CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "chrome/browser/extensions/extension_apitest.h" 13 #include "chrome/browser/extensions/extension_apitest.h"
12 #include "extensions/browser/app_window/app_window.h" 14 #include "extensions/browser/app_window/app_window.h"
13 15
16 #if defined(OS_CHROMEOS)
17 #include "chrome/browser/media/router/mock_media_router.h"
18 #endif
19
14 namespace base { 20 namespace base {
15 class CommandLine; 21 class CommandLine;
16 } 22 }
17 23
18 namespace content { 24 namespace content {
19 class BrowserContext; 25 class BrowserContext;
20 class WebContents; 26 class WebContents;
21 } 27 }
22 28
23 class Browser; 29 class Browser;
24 class ExtensionTestMessageListener; 30 class ExtensionTestMessageListener;
25 31
26 namespace extensions { 32 namespace extensions {
27 class Extension; 33 class Extension;
28 34
29 class PlatformAppBrowserTest : public ExtensionApiTest { 35 class PlatformAppBrowserTest : public ExtensionApiTest {
30 public: 36 public:
31 PlatformAppBrowserTest(); 37 PlatformAppBrowserTest();
32 38
33 void SetUpCommandLine(base::CommandLine* command_line) override; 39 void SetUpCommandLine(base::CommandLine* command_line) override;
40 void SetUpInProcessBrowserTestFixture() override;
41 void TearDownInProcessBrowserTestFixture() override;
34 42
35 // Gets the first app window that is found for a given browser. 43 // Gets the first app window that is found for a given browser.
36 static AppWindow* GetFirstAppWindowForBrowser(Browser* browser); 44 static AppWindow* GetFirstAppWindowForBrowser(Browser* browser);
37 45
38 protected: 46 protected:
39 // Runs the app named |name| out of the platform_apps subdirectory. Waits 47 // Runs the app named |name| out of the platform_apps subdirectory. Waits
40 // for the provided listener to be satisifed. 48 // for the provided listener to be satisifed.
41 const Extension* LoadAndLaunchPlatformApp( 49 const Extension* LoadAndLaunchPlatformApp(
42 const char* name, 50 const char* name,
43 ExtensionTestMessageListener* listener); 51 ExtensionTestMessageListener* listener);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const gfx::Size& minimum_size, 118 const gfx::Size& minimum_size,
111 gfx::Rect* bounds); 119 gfx::Rect* bounds);
112 120
113 // Load a simple test app and create a window. The window must be closed by 121 // Load a simple test app and create a window. The window must be closed by
114 // the caller in order to terminate the test - use CloseAppWindow(). 122 // the caller in order to terminate the test - use CloseAppWindow().
115 // |window_create_options| are the options that will be passed to 123 // |window_create_options| are the options that will be passed to
116 // chrome.app.window.create() in the test app. 124 // chrome.app.window.create() in the test app.
117 AppWindow* CreateTestAppWindow(const std::string& window_create_options); 125 AppWindow* CreateTestAppWindow(const std::string& window_create_options);
118 126
119 private: 127 private:
128 #if defined(OS_CHROMEOS)
129 media_router::MockMediaRouter media_router_;
130 #endif
131
120 DISALLOW_COPY_AND_ASSIGN(PlatformAppBrowserTest); 132 DISALLOW_COPY_AND_ASSIGN(PlatformAppBrowserTest);
121 }; 133 };
122 134
123 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { 135 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest {
124 public: 136 public:
125 void SetUpCommandLine(base::CommandLine* command_line) override; 137 void SetUpCommandLine(base::CommandLine* command_line) override;
126 }; 138 };
127 139
128 } // namespace extensions 140 } // namespace extensions
129 141
130 #endif // CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ 142 #endif // CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_
OLDNEW
« no previous file with comments | « ash/test/tray_cast_test_api.cc ('k') | chrome/browser/apps/app_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698