OLD | NEW |
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 "base/macros.h" |
7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/sync/profile_sync_test_util.h" | 10 #include "chrome/browser/sync/profile_sync_test_util.h" |
10 #include "chrome/browser/sync/sync_global_error_factory.h" | 11 #include "chrome/browser/sync/sync_global_error_factory.h" |
11 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 13 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
13 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 14 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
14 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 15 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
15 #include "chrome/test/base/browser_with_test_window_test.h" | 16 #include "chrome/test/base/browser_with_test_window_test.h" |
16 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 .WillRepeatedly(Return(true)); | 164 .WillRepeatedly(Return(true)); |
164 EXPECT_CALL(service, IsPassphraseRequiredForDecryption()) | 165 EXPECT_CALL(service, IsPassphraseRequiredForDecryption()) |
165 .WillRepeatedly(Return(true)); | 166 .WillRepeatedly(Return(true)); |
166 VerifySyncGlobalErrorResult( | 167 VerifySyncGlobalErrorResult( |
167 &service, login_ui_service, browser(), &error, &global_error, | 168 &service, login_ui_service, browser(), &error, &global_error, |
168 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, | 169 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, |
169 false /* not signed in */, false /* no error */); | 170 false /* not signed in */, false /* no error */); |
170 | 171 |
171 global_error.Shutdown(); | 172 global_error.Shutdown(); |
172 } | 173 } |
OLD | NEW |