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/api_util.h" | 5 #include "chrome/browser/sync_file_system/drive_backend_v1/api_util.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/drive/drive_uploader.h" | 13 #include "chrome/browser/drive/drive_uploader.h" |
14 #include "chrome/browser/drive/fake_drive_service.h" | 14 #include "chrome/browser/drive/fake_drive_service.h" |
15 #include "chrome/browser/google_apis/drive_api_parser.h" | 15 #include "chrome/browser/google_apis/drive_api_parser.h" |
16 #include "chrome/browser/google_apis/gdata_errorcode.h" | 16 #include "chrome/browser/google_apis/gdata_errorcode.h" |
17 #include "chrome/browser/google_apis/test_util.h" | 17 #include "chrome/browser/google_apis/test_util.h" |
18 #include "chrome/browser/sync_file_system/drive_backend/drive_file_sync_util.h" | 18 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_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_v1/fake_drive_service_he
lper.h" |
20 #include "content/public/test/test_browser_thread.h" | 20 #include "content/public/test/test_browser_thread.h" |
21 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
22 #include "net/base/escape.h" | 22 #include "net/base/escape.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 #define FPL(x) FILE_PATH_LITERAL(x) | 25 #define FPL(x) FILE_PATH_LITERAL(x) |
26 | 26 |
27 using drive::DriveServiceInterface; | 27 using drive::DriveServiceInterface; |
28 using drive::DriveUploaderInterface; | 28 using drive::DriveUploaderInterface; |
29 using drive::FakeDriveService; | 29 using drive::FakeDriveService; |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 TestCreateDirectory(); | 975 TestCreateDirectory(); |
976 } | 976 } |
977 | 977 |
978 TEST_F(APIUtilTest, CreateDirectory_WAPI) { | 978 TEST_F(APIUtilTest, CreateDirectory_WAPI) { |
979 ScopedDisableDriveAPI disable_drive_api; | 979 ScopedDisableDriveAPI disable_drive_api; |
980 TestCreateDirectory(); | 980 TestCreateDirectory(); |
981 } | 981 } |
982 | 982 |
983 } // namespace drive_backend | 983 } // namespace drive_backend |
984 } // namespace sync_file_system | 984 } // namespace sync_file_system |
OLD | NEW |