OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/chromeos/drive/fake_file_system.h" | 5 #include "chrome/browser/chromeos/drive/fake_file_system.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "chrome/browser/chromeos/drive/drive.pb.h" | 13 #include "chrome/browser/chromeos/drive/drive.pb.h" |
14 #include "chrome/browser/chromeos/drive/file_errors.h" | 14 #include "chrome/browser/chromeos/drive/file_errors.h" |
15 #include "chrome/browser/chromeos/drive/file_system_util.h" | 15 #include "chrome/browser/chromeos/drive/file_system_util.h" |
16 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 16 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
17 #include "chrome/browser/drive/drive_service_interface.h" | 17 #include "chrome/browser/drive/drive_service_interface.h" |
18 #include "chrome/browser/google_apis/drive_api_parser.h" | |
19 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
20 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 19 #include "google_apis/drive/drive_api_parser.h" |
| 20 #include "google_apis/drive/gdata_wapi_parser.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace drive { | 23 namespace drive { |
24 namespace test_util { | 24 namespace test_util { |
25 | 25 |
26 using content::BrowserThread; | 26 using content::BrowserThread; |
27 | 27 |
28 FakeFileSystem::FakeFileSystem(DriveServiceInterface* drive_service) | 28 FakeFileSystem::FakeFileSystem(DriveServiceInterface* drive_service) |
29 : drive_service_(drive_service), | 29 : drive_service_(drive_service), |
30 weak_ptr_factory_(this) { | 30 weak_ptr_factory_(this) { |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 callback.Run(FILE_ERROR_OK, entry.Pass()); | 379 callback.Run(FILE_ERROR_OK, entry.Pass()); |
380 return; | 380 return; |
381 } | 381 } |
382 } | 382 } |
383 | 383 |
384 callback.Run(FILE_ERROR_NOT_FOUND, scoped_ptr<ResourceEntry>()); | 384 callback.Run(FILE_ERROR_NOT_FOUND, scoped_ptr<ResourceEntry>()); |
385 } | 385 } |
386 | 386 |
387 } // namespace test_util | 387 } // namespace test_util |
388 } // namespace drive | 388 } // namespace drive |
OLD | NEW |