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

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

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 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
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 <memory> 7 #include <memory>
8 8
9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
11 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/sync/profile_sync_test_util.h" 11 #include "chrome/browser/sync/profile_sync_test_util.h"
13 #include "chrome/browser/sync/sync_global_error_factory.h" 12 #include "chrome/browser/sync/sync_global_error_factory.h"
14 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 14 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
16 #include "chrome/browser/ui/webui/signin/login_ui_service.h" 15 #include "chrome/browser/ui/webui/signin/login_ui_service.h"
17 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" 16 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
18 #include "chrome/test/base/browser_with_test_window_test.h" 17 #include "chrome/test/base/browser_with_test_window_test.h"
19 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
20 #include "components/sync/driver/sync_error_controller.h"
21 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
22 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
23 #include "content/public/browser/notification_source.h" 21 #include "content/public/browser/notification_source.h"
24 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
26 24
27 using ::testing::NiceMock; 25 using ::testing::NiceMock;
28 using ::testing::Return; 26 using ::testing::Return;
29 using ::testing::ReturnRef; 27 using ::testing::ReturnRef;
30 using ::testing::_; 28 using ::testing::_;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 .WillRepeatedly(Return(true)); 163 .WillRepeatedly(Return(true));
166 EXPECT_CALL(service, IsPassphraseRequiredForDecryption()) 164 EXPECT_CALL(service, IsPassphraseRequiredForDecryption())
167 .WillRepeatedly(Return(true)); 165 .WillRepeatedly(Return(true));
168 VerifySyncGlobalErrorResult( 166 VerifySyncGlobalErrorResult(
169 &service, login_ui_service, browser(), &error, &global_error, 167 &service, login_ui_service, browser(), &error, &global_error,
170 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, 168 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS,
171 false /* not signed in */, false /* no error */); 169 false /* not signed in */, false /* no error */);
172 170
173 global_error.Shutdown(); 171 global_error.Shutdown();
174 } 172 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_ash_unittest.cc ('k') | components/browser_sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698