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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc

Issue 56113003: Implement new invalidations ack tracking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify drive TODO comment + rebase Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/glue/sync_backend_host_impl.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 void QuitMessageLoop() { 57 void QuitMessageLoop() {
58 base::MessageLoop::current()->Quit(); 58 base::MessageLoop::current()->Quit();
59 } 59 }
60 60
61 class MockSyncFrontend : public SyncFrontend { 61 class MockSyncFrontend : public SyncFrontend {
62 public: 62 public:
63 virtual ~MockSyncFrontend() {} 63 virtual ~MockSyncFrontend() {}
64 64
65 MOCK_METHOD1(OnInvalidatorStateChange,
66 void(syncer::InvalidatorState));
67 MOCK_METHOD1(OnIncomingInvalidation,
68 void(const syncer::ObjectIdInvalidationMap&));
69 MOCK_METHOD3( 65 MOCK_METHOD3(
70 OnBackendInitialized, 66 OnBackendInitialized,
71 void(const syncer::WeakHandle<syncer::JsBackend>&, 67 void(const syncer::WeakHandle<syncer::JsBackend>&,
72 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, 68 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&,
73 bool)); 69 bool));
74 MOCK_METHOD0(OnSyncCycleCompleted, void()); 70 MOCK_METHOD0(OnSyncCycleCompleted, void());
75 MOCK_METHOD1(OnConnectionStatusChange, 71 MOCK_METHOD1(OnConnectionStatusChange,
76 void(syncer::ConnectionStatus status)); 72 void(syncer::ConnectionStatus status));
77 MOCK_METHOD0(OnStopSyncingPermanently, void()); 73 MOCK_METHOD0(OnStopSyncingPermanently, void());
78 MOCK_METHOD0(OnClearServerDataSucceeded, void()); 74 MOCK_METHOD0(OnClearServerDataSucceeded, void());
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 ASSERT_NE(-1, file_util::WriteFile(sync_file, nonsense, strlen(nonsense))); 695 ASSERT_NE(-1, file_util::WriteFile(sync_file, nonsense, strlen(nonsense)));
700 696
701 InitializeBackend(true); 697 InitializeBackend(true);
702 698
703 EXPECT_FALSE(base::PathExists(sync_file)); 699 EXPECT_FALSE(base::PathExists(sync_file));
704 } 700 }
705 701
706 } // namespace 702 } // namespace
707 703
708 } // namespace browser_sync 704 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.cc ('k') | chrome/browser/sync/profile_sync_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698