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

Unified Diff: chrome/browser/apps/app_browsertest_util.cc

Issue 816893002: Added HostedAppLaunch for testing hosted app shims on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/apps/app_browsertest_util.cc
diff --git a/chrome/browser/apps/app_browsertest_util.cc b/chrome/browser/apps/app_browsertest_util.cc
index 56ae8a83d6d9118bed0790adebf63a1a48a39d00..59f913f8ea15d541fece289b99b4646c1afadc65 100644
--- a/chrome/browser/apps/app_browsertest_util.cc
+++ b/chrome/browser/apps/app_browsertest_util.cc
@@ -98,6 +98,14 @@ const Extension* PlatformAppBrowserTest::InstallPlatformApp(
return extension;
}
+const Extension* PlatformAppBrowserTest::InstallHostedApp() {
+ const Extension* extension =
+ InstallExtension(test_data_dir_.AppendASCII("hosted_app"), 1);
+ EXPECT_TRUE(extension);
+
+ return extension;
+}
+
const Extension* PlatformAppBrowserTest::InstallAndLaunchPlatformApp(
const char* name) {
content::WindowedNotificationObserver app_loaded_observer(
@@ -119,6 +127,13 @@ void PlatformAppBrowserTest::LaunchPlatformApp(const Extension* extension) {
extensions::SOURCE_TEST));
}
+void PlatformAppBrowserTest::LaunchHostedApp(const Extension* extension) {
+ AppLaunchParams launch_params(browser()->profile(), extension,
+ NEW_FOREGROUND_TAB,
+ extensions::SOURCE_COMMAND_LINE);
+ OpenApplication(launch_params);
+}
+
WebContents* PlatformAppBrowserTest::GetFirstAppWindowWebContents() {
AppWindow* window = GetFirstAppWindow();
if (window)
« no previous file with comments | « chrome/browser/apps/app_browsertest_util.h ('k') | chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698