OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_contr
oller.h" | 5 #import "chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_contr
oller.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "base/macros.h" |
10 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" | 14 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" |
14 #include "chrome/grit/chromium_strings.h" | 15 #include "chrome/grit/chromium_strings.h" |
15 #include "chrome/grit/generated_resources.h" | 16 #include "chrome/grit/generated_resources.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
17 #import "testing/gtest_mac.h" | 18 #import "testing/gtest_mac.h" |
18 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
19 | 20 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 EXPECT_NSNE(nil, [controller_ createProfileButton]); | 177 EXPECT_NSNE(nil, [controller_ createProfileButton]); |
177 EXPECT_TRUE([[[controller_ view] subviews] | 178 EXPECT_TRUE([[[controller_ view] subviews] |
178 containsObject:[controller_ createProfileButton]]); | 179 containsObject:[controller_ createProfileButton]]); |
179 NSString* explanationWithCreateProfile = base::SysUTF16ToNSString( | 180 NSString* explanationWithCreateProfile = base::SysUTF16ToNSString( |
180 l10n_util::GetStringFUTF16( | 181 l10n_util::GetStringFUTF16( |
181 IDS_ENTERPRISE_SIGNIN_EXPLANATION_WITH_PROFILE_CREATION_NEW_STYLE, | 182 IDS_ENTERPRISE_SIGNIN_EXPLANATION_WITH_PROFILE_CREATION_NEW_STYLE, |
182 base::UTF8ToUTF16(username()), learn_more())); | 183 base::UTF8ToUTF16(username()), learn_more())); |
183 EXPECT_NSEQ(explanationWithCreateProfile, | 184 EXPECT_NSEQ(explanationWithCreateProfile, |
184 [[[controller_ explanationField] textStorage] string]); | 185 [[[controller_ explanationField] textStorage] string]); |
185 } | 186 } |
OLD | NEW |