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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "chrome/browser/sync_file_system/local_sync_operation_resolver.h" | 10 #include "chrome/browser/sync_file_system/local_sync_operation_resolver.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "webkit/fileapi/syncable/file_change.h" | 12 #include "webkit/browser/fileapi/syncable/file_change.h" |
13 #include "webkit/fileapi/syncable/sync_file_type.h" | 13 #include "webkit/browser/fileapi/syncable/sync_file_type.h" |
14 | 14 |
15 namespace sync_file_system { | 15 namespace sync_file_system { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 struct Input { | 19 struct Input { |
20 scoped_ptr<FileChange> remote_file_change; | 20 scoped_ptr<FileChange> remote_file_change; |
21 SyncFileType remote_file_type_in_metadata; | 21 SyncFileType remote_file_type_in_metadata; |
22 | 22 |
23 std::string DebugString() const { | 23 std::string DebugString() const { |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 ASSERT_EQ(expected_types.size(), inputs.size()); | 262 ASSERT_EQ(expected_types.size(), inputs.size()); |
263 for (ExpectedTypes::size_type i = 0; i < expected_types.size(); ++i) { | 263 for (ExpectedTypes::size_type i = 0; i < expected_types.size(); ++i) { |
264 EXPECT_EQ(expected_types[i], | 264 EXPECT_EQ(expected_types[i], |
265 Resolver::ResolveForDeleteDirectoryInConflict( | 265 Resolver::ResolveForDeleteDirectoryInConflict( |
266 inputs[i]->remote_file_change.get())) | 266 inputs[i]->remote_file_change.get())) |
267 << DebugString(inputs, i); | 267 << DebugString(inputs, i); |
268 } | 268 } |
269 } | 269 } |
270 | 270 |
271 } // namespace sync_file_system | 271 } // namespace sync_file_system |
OLD | NEW |