| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #import "base/mac/foundation_util.h" | 8 #import "base/mac/foundation_util.h" |
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/browser/profiles/avatar_menu.h" | 14 #include "chrome/browser/profiles/avatar_menu.h" |
| 14 #include "chrome/browser/profiles/profile_info_cache.h" | 15 #include "chrome/browser/profiles/profile_info_cache.h" |
| 15 #include "chrome/browser/services/gcm/fake_gcm_profile_service.h" | 16 #include "chrome/browser/services/gcm/fake_gcm_profile_service.h" |
| 16 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 17 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
| 17 #include "chrome/browser/signin/account_fetcher_service_factory.h" | 18 #include "chrome/browser/signin/account_fetcher_service_factory.h" |
| 18 #include "chrome/browser/signin/account_tracker_service_factory.h" | 19 #include "chrome/browser/signin/account_tracker_service_factory.h" |
| 19 #include "chrome/browser/signin/chrome_signin_helper.h" | 20 #include "chrome/browser/signin/chrome_signin_helper.h" |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 ASSERT_EQ(5U, [buttonSubviews count]); | 552 ASSERT_EQ(5U, [buttonSubviews count]); |
| 552 | 553 |
| 553 // There should be a lock button. | 554 // There should be a lock button. |
| 554 NSButton* lockButton = | 555 NSButton* lockButton = |
| 555 base::mac::ObjCCast<NSButton>([buttonSubviews objectAtIndex:0]); | 556 base::mac::ObjCCast<NSButton>([buttonSubviews objectAtIndex:0]); |
| 556 ASSERT_TRUE(lockButton); | 557 ASSERT_TRUE(lockButton); |
| 557 EXPECT_EQ(@selector(lockProfile:), [lockButton action]); | 558 EXPECT_EQ(@selector(lockProfile:), [lockButton action]); |
| 558 EXPECT_EQ(controller(), [lockButton target]); | 559 EXPECT_EQ(controller(), [lockButton target]); |
| 559 EXPECT_TRUE([lockButton isEnabled]); | 560 EXPECT_TRUE([lockButton isEnabled]); |
| 560 } | 561 } |
| OLD | NEW |