| 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" |
| 18 #include "testing/gmock/include/gmock/gmock-actions.h" | 19 #include "testing/gmock/include/gmock/gmock-actions.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 22 |
| 22 using ::testing::NiceMock; | 23 using ::testing::NiceMock; |
| 23 using ::testing::Return; | 24 using ::testing::Return; |
| 24 using ::testing::ReturnRef; | 25 using ::testing::ReturnRef; |
| 25 using ::testing::_; | 26 using ::testing::_; |
| 26 using content::BrowserThread; | 27 using content::BrowserThread; |
| 27 | 28 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 .WillRepeatedly(Return(false)); | 174 .WillRepeatedly(Return(false)); |
| 174 | 175 |
| 175 EXPECT_CALL(service, IsPassphraseRequired()) | 176 EXPECT_CALL(service, IsPassphraseRequired()) |
| 176 .WillRepeatedly(Return(true)); | 177 .WillRepeatedly(Return(true)); |
| 177 EXPECT_CALL(service, IsPassphraseRequiredForDecryption()) | 178 EXPECT_CALL(service, IsPassphraseRequiredForDecryption()) |
| 178 .WillRepeatedly(Return(true)); | 179 .WillRepeatedly(Return(true)); |
| 179 VerifySyncGlobalErrorResult( | 180 VerifySyncGlobalErrorResult( |
| 180 &service, login_ui_service, browser(), &error, | 181 &service, login_ui_service, browser(), &error, |
| 181 GoogleServiceAuthError::NONE, true, true); | 182 GoogleServiceAuthError::NONE, true, true); |
| 182 } | 183 } |
| OLD | NEW |