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 "webkit/fileapi/syncable/local_file_change_tracker.h" | 5 #include "webkit/fileapi/syncable/local_file_change_tracker.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/files/scoped_temp_dir.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
13 #include "base/message_loop_proxy.h" | 14 #include "base/message_loop_proxy.h" |
14 #include "base/scoped_temp_dir.h" | |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "webkit/blob/mock_blob_url_request_context.h" | 17 #include "webkit/blob/mock_blob_url_request_context.h" |
18 #include "webkit/fileapi/file_system_context.h" | 18 #include "webkit/fileapi/file_system_context.h" |
19 #include "webkit/fileapi/file_system_task_runners.h" | 19 #include "webkit/fileapi/file_system_task_runners.h" |
20 #include "webkit/fileapi/syncable/canned_syncable_file_system.h" | 20 #include "webkit/fileapi/syncable/canned_syncable_file_system.h" |
21 #include "webkit/fileapi/syncable/local_file_sync_context.h" | 21 #include "webkit/fileapi/syncable/local_file_sync_context.h" |
22 #include "webkit/fileapi/syncable/sync_status_code.h" | 22 #include "webkit/fileapi/syncable/sync_status_code.h" |
23 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | 23 #include "webkit/fileapi/syncable/syncable_file_system_util.h" |
24 #include "webkit/quota/quota_manager.h" | 24 #include "webkit/quota/quota_manager.h" |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 ASSERT_EQ(2U, urls_to_process.size()); | 528 ASSERT_EQ(2U, urls_to_process.size()); |
529 | 529 |
530 // The exact order of recursive removal cannot be determined. | 530 // The exact order of recursive removal cannot be determined. |
531 EXPECT_TRUE(URL(kPath1) == urls_to_process[0] || | 531 EXPECT_TRUE(URL(kPath1) == urls_to_process[0] || |
532 URL(kPath2) == urls_to_process[0]); | 532 URL(kPath2) == urls_to_process[0]); |
533 EXPECT_TRUE(URL(kPath1) == urls_to_process[1] || | 533 EXPECT_TRUE(URL(kPath1) == urls_to_process[1] || |
534 URL(kPath2) == urls_to_process[1]); | 534 URL(kPath2) == urls_to_process[1]); |
535 } | 535 } |
536 | 536 |
537 } // namespace fileapi | 537 } // namespace fileapi |
OLD | NEW |