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

Side by Side Diff: chrome/browser/sync/sync_global_error_unittest.cc

Issue 686563003: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/sync/sync_global_error.h" 5 #include "chrome/browser/sync/sync_global_error.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/sync/profile_sync_service_mock.h" 8 #include "chrome/browser/sync/profile_sync_service_mock.h"
9 #include "chrome/browser/sync/sync_error_controller.h" 9 #include "chrome/browser/sync/sync_error_controller.h"
10 #include "chrome/browser/sync/sync_global_error_factory.h" 10 #include "chrome/browser/sync/sync_global_error_factory.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 KeyedService* BuildMockLoginUIService(content::BrowserContext* profile) { 50 KeyedService* BuildMockLoginUIService(content::BrowserContext* profile) {
51 return new FakeLoginUIService(); 51 return new FakeLoginUIService();
52 } 52 }
53 53
54 // Same as BrowserWithTestWindowTest, but uses MockBrowser to test calls to 54 // Same as BrowserWithTestWindowTest, but uses MockBrowser to test calls to
55 // ExecuteCommand method. 55 // ExecuteCommand method.
56 class SyncGlobalErrorTest : public BrowserWithTestWindowTest { 56 class SyncGlobalErrorTest : public BrowserWithTestWindowTest {
57 public: 57 public:
58 SyncGlobalErrorTest() {} 58 SyncGlobalErrorTest() {}
59 virtual ~SyncGlobalErrorTest() {} 59 ~SyncGlobalErrorTest() override {}
60 60
61 virtual void SetUp() override { 61 void SetUp() override {
62 profile_.reset(ProfileSyncServiceMock::MakeSignedInTestingProfile()); 62 profile_.reset(ProfileSyncServiceMock::MakeSignedInTestingProfile());
63 63
64 BrowserWithTestWindowTest::SetUp(); 64 BrowserWithTestWindowTest::SetUp();
65 } 65 }
66 66
67 Profile* profile() { return profile_.get(); } 67 Profile* profile() { return profile_.get(); }
68 68
69 private: 69 private:
70 scoped_ptr<TestingProfile> profile_; 70 scoped_ptr<TestingProfile> profile_;
71 71
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 .WillRepeatedly(Return(true)); 157 .WillRepeatedly(Return(true));
158 EXPECT_CALL(service, IsPassphraseRequiredForDecryption()) 158 EXPECT_CALL(service, IsPassphraseRequiredForDecryption())
159 .WillRepeatedly(Return(true)); 159 .WillRepeatedly(Return(true));
160 VerifySyncGlobalErrorResult( 160 VerifySyncGlobalErrorResult(
161 &service, login_ui_service, browser(), &error, &global_error, 161 &service, login_ui_service, browser(), &error, &global_error,
162 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, 162 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS,
163 false /* not signed in */, false /* no error */); 163 false /* not signed in */, false /* no error */);
164 164
165 global_error.Shutdown(); 165 global_error.Shutdown();
166 } 166 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_factory_ash.h ('k') | chrome/browser/sync/sync_startup_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698