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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 namespace syncer { | 629 namespace syncer { |
630 namespace { | 630 namespace { |
631 | 631 |
632 // ProfileSyncService should behave just like an invalidator. | 632 // ProfileSyncService should behave just like an invalidator. |
633 INSTANTIATE_TYPED_TEST_CASE_P( | 633 INSTANTIATE_TYPED_TEST_CASE_P( |
634 ProfileSyncServiceInvalidatorTest, InvalidatorTest, | 634 ProfileSyncServiceInvalidatorTest, InvalidatorTest, |
635 ::browser_sync::ProfileSyncServiceInvalidatorTestDelegate); | 635 ::browser_sync::ProfileSyncServiceInvalidatorTestDelegate); |
636 | 636 |
637 } // namespace | 637 } // namespace |
638 } // namespace syncer | 638 } // namespace syncer |
OLD | NEW |