#import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h"
#include "chrome/common/chrome_switches.h"
#include "components/signin/core/common/profile_management_switches.h"
-
-const char kDefaultProfileName[] = "default";
+#include "grit/generated_resources.h"
+#include "ui/base/l10n/l10n_util.h"
class AvatarButtonControllerTest : public CocoaProfileTest {
public:
virtual void SetUp() OVERRIDE {
- switches::EnableNewProfileManagementForTesting(
- CommandLine::ForCurrentProcess());
+ switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess());
DCHECK(profiles::IsMultipleProfilesEnabled());
CocoaProfileTest::SetUp();
TEST_F(AvatarButtonControllerTest, ButtonShown) {
EXPECT_FALSE([view() isHidden]);
- EXPECT_EQ(kDefaultProfileName, base::SysNSStringToUTF8([button() title]));
+ EXPECT_EQ(l10n_util::GetStringUTF16(IDS_SINGLE_PROFILE_DISPLAY_NAME),
+ base::SysNSStringToUTF16([button() title]));
}
TEST_F(AvatarButtonControllerTest, DoubleOpen) {