Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: chrome/browser/sync_file_system/local_file_sync_service_unittest.cc

Issue 15806012: Move webkit/fileapi/syncable/* code to webkit/browser/fileapi (final!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "chrome/browser/sync_file_system/local_file_sync_service.h" 13 #include "chrome/browser/sync_file_system/local_file_sync_service.h"
14 #include "chrome/browser/sync_file_system/mock_local_change_processor.h" 14 #include "chrome/browser/sync_file_system/mock_local_change_processor.h"
15 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" 15 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "webkit/browser/fileapi/file_system_context.h" 19 #include "webkit/browser/fileapi/file_system_context.h"
20 #include "webkit/fileapi/syncable/canned_syncable_file_system.h" 20 #include "webkit/browser/fileapi/syncable/canned_syncable_file_system.h"
21 #include "webkit/fileapi/syncable/file_change.h" 21 #include "webkit/browser/fileapi/syncable/file_change.h"
22 #include "webkit/fileapi/syncable/local_file_change_tracker.h" 22 #include "webkit/browser/fileapi/syncable/local_file_change_tracker.h"
23 #include "webkit/fileapi/syncable/local_file_sync_context.h" 23 #include "webkit/browser/fileapi/syncable/local_file_sync_context.h"
24 #include "webkit/fileapi/syncable/local_file_sync_status.h" 24 #include "webkit/browser/fileapi/syncable/local_file_sync_status.h"
25 #include "webkit/fileapi/syncable/mock_sync_status_observer.h" 25 #include "webkit/browser/fileapi/syncable/mock_sync_status_observer.h"
26 #include "webkit/fileapi/syncable/sync_file_metadata.h" 26 #include "webkit/browser/fileapi/syncable/sync_file_metadata.h"
27 #include "webkit/fileapi/syncable/sync_status_code.h" 27 #include "webkit/browser/fileapi/syncable/sync_status_code.h"
28 #include "webkit/fileapi/syncable/syncable_file_system_util.h" 28 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h"
29 29
30 using fileapi::FileSystemURL; 30 using fileapi::FileSystemURL;
31 using ::testing::_; 31 using ::testing::_;
32 using ::testing::AtLeast; 32 using ::testing::AtLeast;
33 using ::testing::InvokeWithoutArgs; 33 using ::testing::InvokeWithoutArgs;
34 using ::testing::StrictMock; 34 using ::testing::StrictMock;
35 35
36 namespace sync_file_system { 36 namespace sync_file_system {
37 37
38 namespace { 38 namespace {
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 all_origins.insert(kOrigin2); 698 all_origins.insert(kOrigin2);
699 all_origins.insert(kOrigin3); 699 all_origins.insert(kOrigin3);
700 while (!all_origins.empty()) { 700 while (!all_origins.empty()) {
701 ASSERT_TRUE(NextOriginToProcess(&origin)); 701 ASSERT_TRUE(NextOriginToProcess(&origin));
702 ASSERT_TRUE(ContainsKey(all_origins, origin)); 702 ASSERT_TRUE(ContainsKey(all_origins, origin));
703 all_origins.erase(origin); 703 all_origins.erase(origin);
704 } 704 }
705 } 705 }
706 706
707 } // namespace sync_file_system 707 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698