Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm

Issue 2122603007: Move FakeGCMProfileService to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/services/gcm/fake_gcm_profile_service.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/profiles/avatar_menu.h" 15 #include "chrome/browser/profiles/avatar_menu.h"
16 #include "chrome/browser/profiles/profile_attributes_entry.h" 16 #include "chrome/browser/profiles/profile_attributes_entry.h"
17 #include "chrome/browser/profiles/profile_attributes_storage.h" 17 #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" 18 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
20 #include "chrome/browser/signin/account_fetcher_service_factory.h" 19 #include "chrome/browser/signin/account_fetcher_service_factory.h"
21 #include "chrome/browser/signin/account_tracker_service_factory.h" 20 #include "chrome/browser/signin/account_tracker_service_factory.h"
22 #include "chrome/browser/signin/chrome_signin_helper.h" 21 #include "chrome/browser/signin/chrome_signin_helper.h"
23 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h" 22 #include "chrome/browser/signin/fake_account_fetcher_service_builder.h"
24 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" 23 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 24 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
26 #include "chrome/browser/signin/signin_manager_factory.h" 25 #include "chrome/browser/signin/signin_manager_factory.h"
27 #include "chrome/browser/ui/browser.h" 26 #include "chrome/browser/ui/browser.h"
28 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 27 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
29 #include "chrome/common/chrome_switches.h" 28 #include "chrome/common/chrome_switches.h"
30 #include "chrome/common/pref_names.h" 29 #include "chrome/common/pref_names.h"
30 #include "components/gcm_driver/fake_gcm_profile_service.h"
31 #include "components/signin/core/browser/fake_account_fetcher_service.h" 31 #include "components/signin/core/browser/fake_account_fetcher_service.h"
32 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" 32 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
33 #include "components/signin/core/browser/profile_oauth2_token_service.h" 33 #include "components/signin/core/browser/profile_oauth2_token_service.h"
34 #include "components/signin/core/browser/signin_manager.h" 34 #include "components/signin/core/browser/signin_manager.h"
35 #include "components/signin/core/common/profile_management_switches.h" 35 #include "components/signin/core/common/profile_management_switches.h"
36 #include "components/signin/core/common/signin_pref_names.h" 36 #include "components/signin/core/common/signin_pref_names.h"
37 #include "components/syncable_prefs/pref_service_syncable.h" 37 #include "components/syncable_prefs/pref_service_syncable.h"
38 38
39 const std::string kGaiaId = "gaiaid-user@gmail.com"; 39 const std::string kGaiaId = "gaiaid-user@gmail.com";
40 const std::string kEmail = "user@gmail.com"; 40 const std::string kEmail = "user@gmail.com";
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 } 595 }
596 596
597 // There should be a lock button. 597 // There should be a lock button.
598 NSButton* lockButton = 598 NSButton* lockButton =
599 base::mac::ObjCCast<NSButton>([buttonSubviews objectAtIndex:0]); 599 base::mac::ObjCCast<NSButton>([buttonSubviews objectAtIndex:0]);
600 ASSERT_TRUE(lockButton); 600 ASSERT_TRUE(lockButton);
601 EXPECT_EQ(@selector(lockProfile:), [lockButton action]); 601 EXPECT_EQ(@selector(lockProfile:), [lockButton action]);
602 EXPECT_EQ(controller(), [lockButton target]); 602 EXPECT_EQ(controller(), [lockButton target]);
603 EXPECT_TRUE([lockButton isEnabled]); 603 EXPECT_TRUE([lockButton isEnabled]);
604 } 604 }
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/fake_gcm_profile_service.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698