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

Unified Diff: chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm

Issue 16174003: Make all tests use GetActiveDesktop() instead of hardcoding HOST_DESKTOP_TYPE_NATIVE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/cocoa/profile_menu_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm b/chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm
index 06f22b395eb295a87f8b823639c6621f4574815b..3518864cda7944039a6e3471cb974668651adfe6 100644
--- a/chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm
@@ -197,8 +197,7 @@ TEST_F(ProfileMenuControllerTest, SetActiveAndRemove) {
ASSERT_EQ(7, [menu numberOfItems]);
// Create a browser and "show" it.
- Browser::CreateParams profile2_params(profile2,
- chrome::HOST_DESKTOP_TYPE_NATIVE);
+ Browser::CreateParams profile2_params(profile2, chrome::GetActiveDesktop());
scoped_ptr<Browser> p2_browser(
chrome::CreateBrowserWithTestWindowForParams(&profile2_params));
BrowserList::SetLastActive(p2_browser.get());
@@ -209,8 +208,7 @@ TEST_F(ProfileMenuControllerTest, SetActiveAndRemove) {
VerifyProfileNamedIsActive(@"Profile 2", __LINE__);
// Open a new browser and make sure it takes effect.
- Browser::CreateParams profile3_params(profile3,
- chrome::HOST_DESKTOP_TYPE_NATIVE);
+ Browser::CreateParams profile3_params(profile3, chrome::GetActiveDesktop());
scoped_ptr<Browser> p3_browser(
chrome::CreateBrowserWithTestWindowForParams(&profile3_params));
BrowserList::SetLastActive(p3_browser.get());

Powered by Google App Engine
This is Rietveld 408576698