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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc

Issue 1662783002: Remove HostDesktopType from Browser::CreateParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-12
Patch Set: remove desktop_type_ in bookmark_bubble_sign_in_delegate Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
diff --git a/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc b/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
index 265784124654659e3b4debbcba3e01cfa06190c6..8399739c2afd8109c084c0ce1d1c86f6c479d483 100644
--- a/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
@@ -429,28 +429,25 @@ TEST_F(WindowSizerAshTest, MAYBE_PlaceNewWindows) {
scoped_ptr<TestingProfile> profile(new TestingProfile());
// Creating a popup handler here to make sure it does not interfere with the
// existing windows.
- Browser::CreateParams native_params(profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams native_params(profile.get());
scoped_ptr<Browser> browser(
chrome::CreateBrowserWithTestWindowForParams(&native_params));
// Creating a popup handler here to make sure it does not interfere with the
// existing windows.
- Browser::CreateParams params2(profile.get(), chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params2(profile.get());
scoped_ptr<Browser> browser2(CreateTestBrowser(
CreateTestWindowInShellWithId(0), gfx::Rect(16, 32, 640, 320), &params2));
BrowserWindow* browser_window = browser2->window();
// Creating a popup to make sure it does not interfere with the positioning.
- Browser::CreateParams params_popup(Browser::TYPE_POPUP, profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params_popup(Browser::TYPE_POPUP, profile.get());
scoped_ptr<Browser> browser_popup(
CreateTestBrowser(CreateTestWindowInShellWithId(1),
gfx::Rect(16, 32, 128, 256), &params_popup));
// Creating a panel to make sure it does not interfere with the positioning.
- Browser::CreateParams params_panel(Browser::TYPE_POPUP, profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params_panel(Browser::TYPE_POPUP, profile.get());
scoped_ptr<Browser> browser_panel(
CreateTestBrowser(CreateTestWindowInShellWithId(2),
gfx::Rect(32, 48, 256, 512), &params_panel));
@@ -506,8 +503,7 @@ TEST_F(WindowSizerAshTest, MAYBE_PlaceNewWindows) {
TEST_F(WindowSizerAshTest, MAYBE_PlaceNewBrowserWindowOnEmptyDesktop) {
// Create a browser to pass into the GetWindowBoundsAndShowState function.
scoped_ptr<TestingProfile> profile(new TestingProfile());
- Browser::CreateParams native_params(profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams native_params(profile.get());
scoped_ptr<Browser> browser(
chrome::CreateBrowserWithTestWindowForParams(&native_params));
@@ -594,7 +590,7 @@ TEST_F(WindowSizerAshTest, MAYBE_PlaceNewWindowsOnMultipleDisplays) {
scoped_ptr<TestingProfile> profile(new TestingProfile());
// Create browser windows that are used as reference.
- Browser::CreateParams params(profile.get(), chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params(profile.get());
scoped_ptr<Browser> browser(CreateTestBrowser(
CreateTestWindowInShellWithId(0), gfx::Rect(10, 10, 200, 200), &params));
BrowserWindow* browser_window = browser->window();
@@ -602,8 +598,7 @@ TEST_F(WindowSizerAshTest, MAYBE_PlaceNewWindowsOnMultipleDisplays) {
browser_window->Show();
EXPECT_EQ(native_window->GetRootWindow(), ash::Shell::GetTargetRootWindow());
- Browser::CreateParams another_params(profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams another_params(profile.get());
scoped_ptr<Browser> another_browser(
CreateTestBrowser(CreateTestWindowInShellWithId(1),
gfx::Rect(400, 10, 300, 300), &another_params));
@@ -613,8 +608,7 @@ TEST_F(WindowSizerAshTest, MAYBE_PlaceNewWindowsOnMultipleDisplays) {
another_browser_window->Show();
// Creating a new window to verify the new placement.
- Browser::CreateParams new_params(profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams new_params(profile.get());
scoped_ptr<Browser> new_browser(CreateTestBrowser(
CreateTestWindowInShellWithId(0), gfx::Rect(), &new_params));
@@ -689,14 +683,12 @@ TEST_F(WindowSizerAshTest, MAYBE_TestShowState) {
scoped_ptr<TestingProfile> profile(new TestingProfile());
// Creating a browser & window to play with.
- Browser::CreateParams params(Browser::TYPE_TABBED, profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params(Browser::TYPE_TABBED, profile.get());
scoped_ptr<Browser> browser(CreateTestBrowser(
CreateTestWindowInShellWithId(0), gfx::Rect(16, 32, 640, 320), &params));
// Create also a popup browser since that behaves different.
- Browser::CreateParams params_popup(Browser::TYPE_POPUP, profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params_popup(Browser::TYPE_POPUP, profile.get());
scoped_ptr<Browser> browser_popup(
CreateTestBrowser(CreateTestWindowInShellWithId(1),
gfx::Rect(16, 32, 640, 320), &params_popup));
@@ -728,8 +720,7 @@ TEST_F(WindowSizerAshTest, MAYBE_TestShowState) {
// Now create a top level window and check again for both. Only the tabbed
// window should follow the top level window's state.
// Creating a browser & window to play with.
- Browser::CreateParams params2(Browser::TYPE_TABBED, profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params2(Browser::TYPE_TABBED, profile.get());
scoped_ptr<Browser> browser2(CreateTestBrowser(
CreateTestWindowInShellWithId(3), gfx::Rect(16, 32, 640, 320), &params2));
@@ -765,15 +756,13 @@ TEST_F(WindowSizerAshTest, TestShowStateDefaults) {
// Creating a browser & window to play with.
scoped_ptr<TestingProfile> profile(new TestingProfile());
- Browser::CreateParams params(Browser::TYPE_TABBED, profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params(Browser::TYPE_TABBED, profile.get());
scoped_ptr<Browser> browser(CreateTestBrowser(
CreateTestWindowInShellWithId(0), gfx::Rect(16, 32, 640, 320), &params));
// Create also a popup browser since that behaves slightly different for
// defaults.
- Browser::CreateParams params_popup(Browser::TYPE_POPUP, profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams params_popup(Browser::TYPE_POPUP, profile.get());
scoped_ptr<Browser> browser_popup(
CreateTestBrowser(CreateTestWindowInShellWithId(1),
gfx::Rect(16, 32, 128, 256), &params_popup));
@@ -824,8 +813,7 @@ TEST_F(WindowSizerAshTest, TestShowStateDefaults) {
TEST_F(WindowSizerAshTest, DefaultStateBecomesMaximized) {
// Create a browser to pass into the GetWindowBounds function.
scoped_ptr<TestingProfile> profile(new TestingProfile());
- Browser::CreateParams native_params(profile.get(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams native_params(profile.get());
scoped_ptr<Browser> browser(
chrome::CreateBrowserWithTestWindowForParams(&native_params));
@@ -894,8 +882,8 @@ TEST_F(WindowSizerAshTest, DefaultBoundsInTargetDisplay) {
TEST_F(WindowSizerAshTest, TrustedPopupBehavior) {
scoped_ptr<TestingProfile> profile(new TestingProfile());
- Browser::CreateParams trusted_popup_create_params(
- Browser::TYPE_POPUP, profile.get(), chrome::HOST_DESKTOP_TYPE_ASH);
+ Browser::CreateParams trusted_popup_create_params(Browser::TYPE_POPUP,
+ profile.get());
trusted_popup_create_params.trusted_source = true;
scoped_ptr<Browser> trusted_popup(CreateTestBrowser(
« no previous file with comments | « chrome/browser/ui/webui/signin/login_ui_service.cc ('k') | chrome/test/base/browser_with_test_window_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698