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

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

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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/register_app_task.h" 5 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.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"
16 #include "chrome/browser/drive/fake_drive_service.h"
17 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h" 15 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h"
18 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" 16 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h"
19 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe r.h" 17 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe r.h"
20 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" 18 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h"
21 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" 19 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
22 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" 20 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h"
23 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" 21 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
24 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" 22 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
23 #include "components/drive/drive_uploader.h"
24 #include "components/drive/service/fake_drive_service.h"
25 #include "content/public/test/test_browser_thread_bundle.h" 25 #include "content/public/test/test_browser_thread_bundle.h"
26 #include "google_apis/drive/drive_api_parser.h" 26 #include "google_apis/drive/drive_api_parser.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" 28 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h"
29 #include "third_party/leveldatabase/src/include/leveldb/db.h" 29 #include "third_party/leveldatabase/src/include/leveldb/db.h"
30 #include "third_party/leveldatabase/src/include/leveldb/env.h" 30 #include "third_party/leveldatabase/src/include/leveldb/env.h"
31 31
32 namespace sync_file_system { 32 namespace sync_file_system {
33 namespace drive_backend { 33 namespace drive_backend {
34 34
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 CreateMetadataDatabase(db.Pass()); 306 CreateMetadataDatabase(db.Pass());
307 RunRegisterAppTask(kAppID); 307 RunRegisterAppTask(kAppID);
308 308
309 EXPECT_EQ(1u, CountRegisteredAppRoot()); 309 EXPECT_EQ(1u, CountRegisteredAppRoot());
310 EXPECT_TRUE(IsAppRegistered(kAppID)); 310 EXPECT_TRUE(IsAppRegistered(kAppID));
311 } 311 }
312 312
313 } // namespace drive_backend 313 } // namespace drive_backend
314 } // namespace sync_file_system 314 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698