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/sync_file_system/fake_remote_change_processor.h" | 5 #include "chrome/browser/sync_file_system/fake_remote_change_processor.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
12 #include "chrome/browser/sync_file_system/file_change.h" | 12 #include "chrome/browser/sync_file_system/file_change.h" |
13 #include "chrome/browser/sync_file_system/sync_file_metadata.h" | 13 #include "chrome/browser/sync_file_system/sync_file_metadata.h" |
14 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 14 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
| 15 #include "storage/browser/fileapi/file_system_url.h" |
15 #include "storage/common/fileapi/file_system_util.h" | 16 #include "storage/common/fileapi/file_system_util.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "webkit/browser/fileapi/file_system_url.h" | |
18 | 18 |
19 namespace sync_file_system { | 19 namespace sync_file_system { |
20 | 20 |
21 FakeRemoteChangeProcessor::FakeRemoteChangeProcessor() { | 21 FakeRemoteChangeProcessor::FakeRemoteChangeProcessor() { |
22 } | 22 } |
23 | 23 |
24 FakeRemoteChangeProcessor::~FakeRemoteChangeProcessor() { | 24 FakeRemoteChangeProcessor::~FakeRemoteChangeProcessor() { |
25 } | 25 } |
26 | 26 |
27 void FakeRemoteChangeProcessor::PrepareForProcessRemoteChange( | 27 void FakeRemoteChangeProcessor::PrepareForProcessRemoteChange( |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 for (size_t i = 0; i < applied.size() && i < expected.size(); ++i) { | 165 for (size_t i = 0; i < applied.size() && i < expected.size(); ++i) { |
166 EXPECT_EQ(expected[i], applied[i]) | 166 EXPECT_EQ(expected[i], applied[i]) |
167 << url.DebugString() | 167 << url.DebugString() |
168 << " expected:" << expected[i].DebugString() | 168 << " expected:" << expected[i].DebugString() |
169 << " applied:" << applied[i].DebugString(); | 169 << " applied:" << applied[i].DebugString(); |
170 } | 170 } |
171 } | 171 } |
172 } | 172 } |
173 | 173 |
174 } // namespace sync_file_system | 174 } // namespace sync_file_system |
OLD | NEW |