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/drive_file_sync_service.h" | 5 #include "chrome/browser/sync_file_system/drive_file_sync_service.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/sync_file_system/drive/fake_api_util.h" | 14 #include "chrome/browser/sync_file_system/drive/fake_api_util.h" |
15 #include "chrome/browser/sync_file_system/drive_metadata_store.h" | 15 #include "chrome/browser/sync_file_system/drive_metadata_store.h" |
16 #include "chrome/browser/sync_file_system/fake_remote_change_processor.h" | 16 #include "chrome/browser/sync_file_system/fake_remote_change_processor.h" |
17 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" | 17 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" |
18 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
19 #include "content/public/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" | 21 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" |
22 | 22 |
23 namespace sync_file_system { | 23 namespace sync_file_system { |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 TEST_F(DriveFileSyncServiceSyncTest, DeleteDirectoryTest) { | 436 TEST_F(DriveFileSyncServiceSyncTest, DeleteDirectoryTest) { |
437 std::string kDir = "dir title"; | 437 std::string kDir = "dir title"; |
438 SyncEvent sync_event[] = { | 438 SyncEvent sync_event[] = { |
439 CreateRemoteDirectoryAddEvent(kDir), | 439 CreateRemoteDirectoryAddEvent(kDir), |
440 CreateRemoteFileDeleteEvent(kDir), | 440 CreateRemoteFileDeleteEvent(kDir), |
441 }; | 441 }; |
442 RunTest(CreateTestCase(sync_event)); | 442 RunTest(CreateTestCase(sync_event)); |
443 } | 443 } |
444 | 444 |
445 } // namespace sync_file_system | 445 } // namespace sync_file_system |
OLD | NEW |