| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 token_service->IssueAuthTokenForTest( | 132 token_service->IssueAuthTokenForTest( |
| 133 GaiaConstants::kSyncService, "token1"); | 133 GaiaConstants::kSyncService, "token1"); |
| 134 token_service->IssueAuthTokenForTest( | 134 token_service->IssueAuthTokenForTest( |
| 135 GaiaConstants::kGaiaOAuth2LoginRefreshToken, "token2"); | 135 GaiaConstants::kGaiaOAuth2LoginRefreshToken, "token2"); |
| 136 } | 136 } |
| 137 | 137 |
| 138 scoped_ptr<TestProfileSyncService> service; | 138 scoped_ptr<TestProfileSyncService> service; |
| 139 scoped_ptr<TestingProfile> profile; | 139 scoped_ptr<TestingProfile> profile; |
| 140 | 140 |
| 141 private: | 141 private: |
| 142 MessageLoop ui_loop_; | 142 base::MessageLoop ui_loop_; |
| 143 // Needed by |service|. | 143 // Needed by |service|. |
| 144 content::TestBrowserThread ui_thread_; | 144 content::TestBrowserThread ui_thread_; |
| 145 content::TestBrowserThread db_thread_; | 145 content::TestBrowserThread db_thread_; |
| 146 // Needed by DisableAndEnableSyncTemporarily test case. | 146 // Needed by DisableAndEnableSyncTemporarily test case. |
| 147 content::TestBrowserThread file_thread_; | 147 content::TestBrowserThread file_thread_; |
| 148 // Needed by |service| and |profile|'s request context. | 148 // Needed by |service| and |profile|'s request context. |
| 149 content::TestBrowserThread io_thread_; | 149 content::TestBrowserThread io_thread_; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 class TestProfileSyncServiceObserver : public ProfileSyncServiceObserver { | 152 class TestProfileSyncServiceObserver : public ProfileSyncServiceObserver { |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 namespace syncer { | 623 namespace syncer { |
| 624 namespace { | 624 namespace { |
| 625 | 625 |
| 626 // ProfileSyncService should behave just like an invalidator. | 626 // ProfileSyncService should behave just like an invalidator. |
| 627 INSTANTIATE_TYPED_TEST_CASE_P( | 627 INSTANTIATE_TYPED_TEST_CASE_P( |
| 628 ProfileSyncServiceInvalidatorTest, InvalidatorTest, | 628 ProfileSyncServiceInvalidatorTest, InvalidatorTest, |
| 629 ::browser_sync::ProfileSyncServiceInvalidatorTestDelegate); | 629 ::browser_sync::ProfileSyncServiceInvalidatorTestDelegate); |
| 630 | 630 |
| 631 } // namespace | 631 } // namespace |
| 632 } // namespace syncer | 632 } // namespace syncer |
| OLD | NEW |