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/drive_backend_test_util.
h" | 5 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.
h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/drive/drive_api_util.h" | |
11 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 10 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
12 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 11 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
13 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 12 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
| 13 #include "components/drive/drive_api_util.h" |
14 #include "google_apis/drive/drive_api_parser.h" | 14 #include "google_apis/drive/drive_api_parser.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace sync_file_system { | 17 namespace sync_file_system { |
18 namespace drive_backend { | 18 namespace drive_backend { |
19 namespace test_util { | 19 namespace test_util { |
20 | 20 |
21 void ExpectEquivalentDetails(const FileDetails& left, | 21 void ExpectEquivalentDetails(const FileDetails& left, |
22 const FileDetails& right) { | 22 const FileDetails& right) { |
23 std::set<std::string> parents; | 23 std::set<std::string> parents; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 const google_apis::FileResource& resource) { | 128 const google_apis::FileResource& resource) { |
129 if (resource.IsDirectory()) | 129 if (resource.IsDirectory()) |
130 return RESOURCE_KIND_FOLDER; | 130 return RESOURCE_KIND_FOLDER; |
131 else | 131 else |
132 return RESOURCE_KIND_FILE; | 132 return RESOURCE_KIND_FILE; |
133 } | 133 } |
134 | 134 |
135 } // namespace test_util | 135 } // namespace test_util |
136 } // namespace drive_backend | 136 } // namespace drive_backend |
137 } // namespace sync_file_system | 137 } // namespace sync_file_system |
OLD | NEW |