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