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

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

Issue 106713002: Move LaunchContainer enum to extension_constants.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 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 | Annotate | Revision Log
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 "apps/shell_window_geometry_cache.h" 5 #include "apps/shell_window_geometry_cache.h"
6 #include "chrome/browser/apps/app_browsertest_util.h" 6 #include "chrome/browser/apps/app_browsertest_util.h"
7 #include "chrome/browser/extensions/extension_test_message_listener.h" 7 #include "chrome/browser/extensions/extension_test_message_listener.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/extensions/application_launch.h" 10 #include "chrome/browser/ui/extensions/application_launch.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ExtensionTestMessageListener launched_listener("Launched", true); 125 ExtensionTestMessageListener launched_listener("Launched", true);
126 126
127 content::WindowedNotificationObserver app_loaded_observer( 127 content::WindowedNotificationObserver app_loaded_observer(
128 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, 128 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME,
129 content::NotificationService::AllSources()); 129 content::NotificationService::AllSources());
130 130
131 const extensions::Extension* extension = LoadExtension( 131 const extensions::Extension* extension = LoadExtension(
132 test_data_dir_.AppendASCII("platform_apps").AppendASCII("window_api")); 132 test_data_dir_.AppendASCII("platform_apps").AppendASCII("window_api"));
133 EXPECT_TRUE(extension); 133 EXPECT_TRUE(extension);
134 134
135 OpenApplication(AppLaunchParams( 135 OpenApplication(AppLaunchParams(browser()->profile(),
136 browser()->profile(), extension, extensions::LAUNCH_NONE, NEW_WINDOW)); 136 extension,
137 extensions::LAUNCH_CONTAINER_NONE,
138 NEW_WINDOW));
137 139
138 ExtensionTestMessageListener geometry_listener("ListenGeometryChange", true); 140 ExtensionTestMessageListener geometry_listener("ListenGeometryChange", true);
139 141
140 ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); 142 ASSERT_TRUE(launched_listener.WaitUntilSatisfied());
141 launched_listener.Reply("testRestoreAfterGeometryCacheChange"); 143 launched_listener.Reply("testRestoreAfterGeometryCacheChange");
142 144
143 ASSERT_TRUE(geometry_listener.WaitUntilSatisfied()); 145 ASSERT_TRUE(geometry_listener.WaitUntilSatisfied());
144 146
145 GeometryCacheChangeHelper geo_change_helper( 147 GeometryCacheChangeHelper geo_change_helper(
146 ShellWindowGeometryCache::Get(browser()->profile()), extension->id(), 148 ShellWindowGeometryCache::Get(browser()->profile()), extension->id(),
147 // The next line has information that has to stay in sync with the app. 149 // The next line has information that has to stay in sync with the app.
148 "test-ps", gfx::Rect(200, 200, 200, 200)); 150 "test-ps", gfx::Rect(200, 200, 200, 200));
149 151
150 // This call will block until the shell window geometry cache will be changed. 152 // This call will block until the shell window geometry cache will be changed.
151 geo_change_helper.WaitForEntirelyChanged(); 153 geo_change_helper.WaitForEntirelyChanged();
152 154
153 ResultCatcher catcher; 155 ResultCatcher catcher;
154 geometry_listener.Reply(""); 156 geometry_listener.Reply("");
155 ASSERT_TRUE(catcher.GetNextResult()); 157 ASSERT_TRUE(catcher.GetNextResult());
156 } 158 }
157 159
158 IN_PROC_BROWSER_TEST_F(AppWindowAPI, DISABLED_TestSizeConstraints) { 160 IN_PROC_BROWSER_TEST_F(AppWindowAPI, DISABLED_TestSizeConstraints) {
159 ASSERT_TRUE(RunAppWindowAPITest("testSizeConstraints")) << message_; 161 ASSERT_TRUE(RunAppWindowAPITest("testSizeConstraints")) << message_;
160 } 162 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_browsertest_util.cc ('k') | chrome/browser/automation/automation_provider_observers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698