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_chooser_controller.h" | 5 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #import "base/mac/foundation_util.h" | 10 #import "base/mac/foundation_util.h" |
11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "chrome/browser/gcm/fake_gcm_profile_service.h" |
| 16 #include "chrome/browser/gcm/gcm_profile_service_factory.h" |
15 #include "chrome/browser/profiles/avatar_menu.h" | 17 #include "chrome/browser/profiles/avatar_menu.h" |
16 #include "chrome/browser/profiles/profile_attributes_entry.h" | 18 #include "chrome/browser/profiles/profile_attributes_entry.h" |
17 #include "chrome/browser/profiles/profile_attributes_storage.h" | 19 #include "chrome/browser/profiles/profile_attributes_storage.h" |
18 #include "chrome/browser/services/gcm/fake_gcm_profile_service.h" | |
19 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | |
20 #include "chrome/browser/signin/account_fetcher_service_factory.h" | 20 #include "chrome/browser/signin/account_fetcher_service_factory.h" |
21 #include "chrome/browser/signin/account_tracker_service_factory.h" | 21 #include "chrome/browser/signin/account_tracker_service_factory.h" |
22 #include "chrome/browser/signin/chrome_signin_helper.h" | 22 #include "chrome/browser/signin/chrome_signin_helper.h" |
23 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h" | 23 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h" |
24 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" | 24 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" |
25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
26 #include "chrome/browser/signin/signin_manager_factory.h" | 26 #include "chrome/browser/signin/signin_manager_factory.h" |
27 #include "chrome/browser/ui/browser.h" | 27 #include "chrome/browser/ui/browser.h" |
28 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" | 28 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" |
29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 } | 633 } |
634 | 634 |
635 // There should be a lock button. | 635 // There should be a lock button. |
636 NSButton* lockButton = | 636 NSButton* lockButton = |
637 base::mac::ObjCCast<NSButton>([buttonSubviews objectAtIndex:0]); | 637 base::mac::ObjCCast<NSButton>([buttonSubviews objectAtIndex:0]); |
638 ASSERT_TRUE(lockButton); | 638 ASSERT_TRUE(lockButton); |
639 EXPECT_EQ(@selector(lockProfile:), [lockButton action]); | 639 EXPECT_EQ(@selector(lockProfile:), [lockButton action]); |
640 EXPECT_EQ(controller(), [lockButton target]); | 640 EXPECT_EQ(controller(), [lockButton target]); |
641 EXPECT_TRUE([lockButton isEnabled]); | 641 EXPECT_TRUE([lockButton isEnabled]); |
642 } | 642 } |
OLD | NEW |