Index: chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm |
index d48823787d947b18f4e949c7e1de20ca9f6afb21..3bd2ca97de4c3448cb9eed1b2a6bd3fdeca9b71b 100644 |
--- a/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm |
+++ b/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm |
@@ -4,6 +4,7 @@ |
#import "chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h" |
+#include "base/command_line.h" |
#include "base/mac/scoped_nsobject.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/message_loop/message_pump_mac.h" |
@@ -15,6 +16,7 @@ |
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
#include "chrome/test/base/testing_browser_process.h" |
#include "chrome/test/base/testing_profile_manager.h" |
+#include "components/signin/core/common/profile_management_switches.h" |
#include "testing/gtest_mac.h" |
#import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
#include "ui/events/test/cocoa_test_event_utils.h" |
@@ -26,17 +28,20 @@ class AvatarMenuBubbleControllerTest : public CocoaTest { |
} |
void SetUp() override { |
+ switches::DisableNewAvatarMenuForTesting( |
+ base::CommandLine::ForCurrentProcess()); |
+ |
CocoaTest::SetUp(); |
ASSERT_TRUE(manager_.SetUp()); |
manager_.CreateTestingProfile("test1", scoped_ptr<PrefServiceSyncable>(), |
- base::ASCIIToUTF16("Test 1"), 1, |
- std::string(), |
- TestingProfile::TestingFactories()); |
+ base::ASCIIToUTF16("Test 1"), 1, |
+ std::string(), |
+ TestingProfile::TestingFactories()); |
Scott Hess - ex-Googler
2015/03/09 15:36:27
This and the next call are one space too indented,
Mike Lerman
2015/03/10 15:58:58
Done.
|
manager_.CreateTestingProfile("test2", scoped_ptr<PrefServiceSyncable>(), |
- base::ASCIIToUTF16("Test 2"), 0, |
- std::string(), |
- TestingProfile::TestingFactories()); |
+ base::ASCIIToUTF16("Test 2"), 0, |
+ std::string(), |
+ TestingProfile::TestingFactories()); |
menu_ = new AvatarMenu(manager_.profile_info_cache(), NULL, NULL); |
menu_->RebuildMenu(); |
@@ -78,7 +83,7 @@ TEST_F(AvatarMenuBubbleControllerTest, InitialLayout) { |
NSView* contents = [[controller() window] contentView]; |
EXPECT_EQ(4U, [[contents subviews] count]); |
- // Loop over the itmes and match the viewController views to subviews. |
+ // Loop over the items and match the viewController views to subviews. |
NSMutableArray* subviews = |
[NSMutableArray arrayWithArray:[contents subviews]]; |
for (AvatarMenuItemController* viewController in [controller() items]) { |