OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/drive_file_system.h" | 5 #include "chrome/browser/chromeos/drive/drive_file_system.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/json/json_file_value_serializer.h" | 14 #include "base/json/json_file_value_serializer.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
18 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
20 #include "chrome/browser/chromeos/drive/drive.pb.h" | 21 #include "chrome/browser/chromeos/drive/drive.pb.h" |
21 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" | 22 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" |
22 #include "chrome/browser/chromeos/drive/drive_scheduler.h" | 23 #include "chrome/browser/chromeos/drive/drive_scheduler.h" |
23 #include "chrome/browser/chromeos/drive/drive_test_util.h" | 24 #include "chrome/browser/chromeos/drive/drive_test_util.h" |
24 #include "chrome/browser/chromeos/drive/drive_webapps_registry.h" | 25 #include "chrome/browser/chromeos/drive/drive_webapps_registry.h" |
25 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" | 26 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" |
26 #include "chrome/browser/chromeos/drive/mock_directory_change_observer.h" | 27 #include "chrome/browser/chromeos/drive/mock_directory_change_observer.h" |
27 #include "chrome/browser/chromeos/drive/mock_drive_cache_observer.h" | 28 #include "chrome/browser/chromeos/drive/mock_drive_cache_observer.h" |
28 #include "chrome/browser/google_apis/drive_api_parser.h" | 29 #include "chrome/browser/google_apis/drive_api_parser.h" |
29 #include "chrome/browser/google_apis/fake_drive_service.h" | 30 #include "chrome/browser/google_apis/fake_drive_service.h" |
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2132 | 2133 |
2133 // An app for foo.exe should now be found, as the registry was loaded. | 2134 // An app for foo.exe should now be found, as the registry was loaded. |
2134 drive_webapps_registry_->GetWebAppsForFile( | 2135 drive_webapps_registry_->GetWebAppsForFile( |
2135 base::FilePath(FILE_PATH_LITERAL("foo.exe")), | 2136 base::FilePath(FILE_PATH_LITERAL("foo.exe")), |
2136 "" /* mime_type */, | 2137 "" /* mime_type */, |
2137 &apps); | 2138 &apps); |
2138 EXPECT_EQ(1U, apps.size()); | 2139 EXPECT_EQ(1U, apps.size()); |
2139 } | 2140 } |
2140 | 2141 |
2141 } // namespace drive | 2142 } // namespace drive |
OLD | NEW |