| 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 <stddef.h> |
| 6 |
| 5 #include <set> | 7 #include <set> |
| 6 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "build/build_config.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/signin/account_tracker_service_factory.h" | 12 #include "chrome/browser/signin/account_tracker_service_factory.h" |
| 10 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 13 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
| 11 #include "chrome/browser/signin/signin_error_controller_factory.h" | 14 #include "chrome/browser/signin/signin_error_controller_factory.h" |
| 12 #include "chrome/browser/sync/profile_sync_test_util.h" | 15 #include "chrome/browser/sync/profile_sync_test_util.h" |
| 13 #include "chrome/browser/sync/sync_ui_util.h" | 16 #include "chrome/browser/sync/sync_ui_util.h" |
| 14 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
| 15 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
| 16 #include "components/browser_sync/browser/profile_sync_service_mock.h" | 19 #include "components/browser_sync/browser/profile_sync_service_mock.h" |
| 17 #include "components/signin/core/browser/fake_auth_status_provider.h" | 20 #include "components/signin/core/browser/fake_auth_status_provider.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 EXPECT_FALSE(status_label.empty()); | 399 EXPECT_FALSE(status_label.empty()); |
| 397 EXPECT_EQ(status_label.find(base::ASCIIToUTF16("href")), | 400 EXPECT_EQ(status_label.find(base::ASCIIToUTF16("href")), |
| 398 base::string16::npos); | 401 base::string16::npos); |
| 399 testing::Mock::VerifyAndClearExpectations(&service); | 402 testing::Mock::VerifyAndClearExpectations(&service); |
| 400 testing::Mock::VerifyAndClearExpectations(&signin); | 403 testing::Mock::VerifyAndClearExpectations(&signin); |
| 401 EXPECT_CALL(service, GetAuthError()).WillRepeatedly(ReturnRef(error)); | 404 EXPECT_CALL(service, GetAuthError()).WillRepeatedly(ReturnRef(error)); |
| 402 provider.reset(); | 405 provider.reset(); |
| 403 signin.Shutdown(); | 406 signin.Shutdown(); |
| 404 } | 407 } |
| 405 } | 408 } |
| OLD | NEW |