Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_file_system/drive_backend/sync_engine.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" |
| 6 | 6 |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| 11 #include "chrome/browser/drive/drive_uploader.h" | 11 #include "chrome/browser/drive/drive_uploader.h" |
| 12 #include "chrome/browser/drive/fake_drive_service.h" | 12 #include "chrome/browser/drive/fake_drive_service.h" |
| 13 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | 13 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" |
| 14 #include "chrome/browser/sync_file_system/drive_backend/fake_sync_worker.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/fake_sync_worker.h" |
| 15 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" | 15 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" |
| 16 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" | 16 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" |
| 17 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 17 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 19 #include "content/public/test/test_browser_thread_bundle.h" | 19 #include "content/public/test/test_browser_thread_bundle.h" |
| 20 #include "net/url_request/url_request_context_getter.h" | |
|
nhiroki
2014/08/28 09:36:57
ditto.
dcheng
2014/08/28 09:40:05
Similar reason for this one as well.
nhiroki
2014/08/28 09:51:57
Acknowledged.
| |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 22 |
| 22 namespace sync_file_system { | 23 namespace sync_file_system { |
| 23 namespace drive_backend { | 24 namespace drive_backend { |
| 24 | 25 |
| 25 class SyncEngineTest : public testing::Test, | 26 class SyncEngineTest : public testing::Test, |
| 26 public base::SupportsWeakPtr<SyncEngineTest> { | 27 public base::SupportsWeakPtr<SyncEngineTest> { |
| 27 public: | 28 public: |
| 28 typedef RemoteFileSyncService::OriginStatusMap RemoteOriginStatusMap; | 29 typedef RemoteFileSyncService::OriginStatusMap RemoteOriginStatusMap; |
| 29 | 30 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 TEST_F(SyncEngineTest, ProcessRemoteChange) { | 225 TEST_F(SyncEngineTest, ProcessRemoteChange) { |
| 225 SyncStatusCode sync_status; | 226 SyncStatusCode sync_status; |
| 226 storage::FileSystemURL url; | 227 storage::FileSystemURL url; |
| 227 sync_engine()->ProcessRemoteChange(CreateResultReceiver(&sync_status, &url)); | 228 sync_engine()->ProcessRemoteChange(CreateResultReceiver(&sync_status, &url)); |
| 228 WaitForWorkerTaskRunner(); | 229 WaitForWorkerTaskRunner(); |
| 229 EXPECT_EQ(SYNC_STATUS_OK, sync_status); | 230 EXPECT_EQ(SYNC_STATUS_OK, sync_status); |
| 230 } | 231 } |
| 231 | 232 |
| 232 } // namespace drive_backend | 233 } // namespace drive_backend |
| 233 } // namespace sync_file_system | 234 } // namespace sync_file_system |
| OLD | NEW |