Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc

Issue 881403003: Rename gdata_errorcode.h to drive_api_error_codes.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos in BUILD.gn Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/remote_to_local_syncer.h " 5 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h "
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
15 #include "chrome/browser/drive/drive_uploader.h" 15 #include "chrome/browser/drive/drive_uploader.h"
16 #include "chrome/browser/drive/fake_drive_service.h" 16 #include "chrome/browser/drive/fake_drive_service.h"
17 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h" 17 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h"
18 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util. h" 18 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util. h"
19 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe r.h" 19 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe r.h"
20 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h" 20 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h"
21 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" 21 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
22 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" 22 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
23 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer. h" 23 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer. h"
24 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" 24 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"
25 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" 25 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h"
26 #include "chrome/browser/sync_file_system/fake_remote_change_processor.h" 26 #include "chrome/browser/sync_file_system/fake_remote_change_processor.h"
27 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" 27 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
28 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 28 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
29 #include "content/public/test/test_browser_thread_bundle.h" 29 #include "content/public/test/test_browser_thread_bundle.h"
30 #include "google_apis/drive/gdata_errorcode.h" 30 #include "google_apis/drive/drive_api_error_codes.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" 32 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h"
33 #include "third_party/leveldatabase/src/include/leveldb/env.h" 33 #include "third_party/leveldatabase/src/include/leveldb/env.h"
34 34
35 namespace sync_file_system { 35 namespace sync_file_system {
36 namespace drive_backend { 36 namespace drive_backend {
37 37
38 namespace { 38 namespace {
39 39
40 storage::FileSystemURL URL(const GURL& origin, const std::string& path) { 40 storage::FileSystemURL URL(const GURL& origin, const std::string& path) {
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 491
492 EXPECT_EQ(SYNC_STATUS_OK, ListChanges()); 492 EXPECT_EQ(SYNC_STATUS_OK, ListChanges());
493 EXPECT_EQ(SYNC_STATUS_NO_CHANGE_TO_SYNC, RunSyncerUntilIdle()); 493 EXPECT_EQ(SYNC_STATUS_NO_CHANGE_TO_SYNC, RunSyncerUntilIdle());
494 VerifyConsistency(); 494 VerifyConsistency();
495 495
496 // SyncEngine will re-register the app and resurrect the app root later. 496 // SyncEngine will re-register the app and resurrect the app root later.
497 } 497 }
498 498
499 } // namespace drive_backend 499 } // namespace drive_backend
500 } // namespace sync_file_system 500 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698