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/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/signin/signin_manager.h" | 10 #include "chrome/browser/signin/signin_manager.h" |
11 #include "chrome/browser/signin/signin_manager_factory.h" | 11 #include "chrome/browser/signin/signin_manager_factory.h" |
12 #include "chrome/browser/sync/profile_sync_service_mock.h" | 12 #include "chrome/browser/sync/profile_sync_service_mock.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 14 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
15 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 15 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
16 #include "chrome/test/base/browser_with_test_window_test.h" | 16 #include "chrome/test/base/browser_with_test_window_test.h" |
17 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
18 #include "content/public/test/test_browser_thread.h" | |
19 #include "testing/gmock/include/gmock/gmock-actions.h" | 18 #include "testing/gmock/include/gmock/gmock-actions.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
22 | 21 |
23 using ::testing::NiceMock; | 22 using ::testing::NiceMock; |
24 using ::testing::Return; | 23 using ::testing::Return; |
25 using ::testing::ReturnRef; | 24 using ::testing::ReturnRef; |
26 using ::testing::_; | 25 using ::testing::_; |
27 using content::BrowserThread; | 26 using content::BrowserThread; |
28 | 27 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 .WillRepeatedly(Return(false)); | 173 .WillRepeatedly(Return(false)); |
175 | 174 |
176 EXPECT_CALL(service, IsPassphraseRequired()) | 175 EXPECT_CALL(service, IsPassphraseRequired()) |
177 .WillRepeatedly(Return(true)); | 176 .WillRepeatedly(Return(true)); |
178 EXPECT_CALL(service, IsPassphraseRequiredForDecryption()) | 177 EXPECT_CALL(service, IsPassphraseRequiredForDecryption()) |
179 .WillRepeatedly(Return(true)); | 178 .WillRepeatedly(Return(true)); |
180 VerifySyncGlobalErrorResult( | 179 VerifySyncGlobalErrorResult( |
181 &service, login_ui_service, browser(), &error, | 180 &service, login_ui_service, browser(), &error, |
182 GoogleServiceAuthError::NONE, true, true); | 181 GoogleServiceAuthError::NONE, true, true); |
183 } | 182 } |
OLD | NEW |