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_v1/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/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" |
15 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_util.
h" | 16 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_util.
h" |
16 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_he
lper.h" | |
17 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_uploader.h
" | 17 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_uploader.h
" |
18 #include "content/public/test/test_browser_thread.h" | 18 #include "content/public/test/test_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 "google_apis/drive/drive_api_parser.h" | 20 #include "google_apis/drive/drive_api_parser.h" |
21 #include "google_apis/drive/gdata_errorcode.h" | 21 #include "google_apis/drive/gdata_errorcode.h" |
22 #include "google_apis/drive/test_util.h" | 22 #include "google_apis/drive/test_util.h" |
23 #include "net/base/escape.h" | 23 #include "net/base/escape.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 #define FPL(x) FILE_PATH_LITERAL(x) | 26 #define FPL(x) FILE_PATH_LITERAL(x) |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 TestCreateDirectory(); | 827 TestCreateDirectory(); |
828 } | 828 } |
829 | 829 |
830 TEST_F(APIUtilTest, CreateDirectory_WAPI) { | 830 TEST_F(APIUtilTest, CreateDirectory_WAPI) { |
831 ScopedDisableDriveAPI disable_drive_api; | 831 ScopedDisableDriveAPI disable_drive_api; |
832 TestCreateDirectory(); | 832 TestCreateDirectory(); |
833 } | 833 } |
834 | 834 |
835 } // namespace drive_backend | 835 } // namespace drive_backend |
836 } // namespace sync_file_system | 836 } // namespace sync_file_system |
OLD | NEW |