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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_mock.h

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 years, 2 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
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 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "components/sync/base/weak_handle.h" 13 #include "components/sync/base/weak_handle.h"
14 #include "components/sync/driver/glue/sync_backend_host.h" 14 #include "components/sync/driver/glue/sync_backend_host.h"
15 15
16 namespace syncer { 16 namespace syncer {
17 17
18 // A mock of the SyncBackendHost. 18 // A mock of the SyncBackendHost.
19 // 19 //
20 // This class implements the bare minimum required for the ProfileSyncService to 20 // This class implements the bare minimum required for the ProfileSyncService to
21 // get through initialization. It often returns NULL pointers or nonesense 21 // get through initialization. It often returns null pointers or nonesense
22 // values; it is not intended to be used in tests that depend on SyncBackendHost 22 // values; it is not intended to be used in tests that depend on SyncBackendHost
23 // behavior. 23 // behavior.
24 class SyncBackendHostMock : public SyncBackendHost { 24 class SyncBackendHostMock : public SyncBackendHost {
25 public: 25 public:
26 SyncBackendHostMock(); 26 SyncBackendHostMock();
27 ~SyncBackendHostMock() override; 27 ~SyncBackendHostMock() override;
28 28
29 void Initialize( 29 void Initialize(
30 SyncFrontend* frontend, 30 SyncFrontend* frontend,
31 std::unique_ptr<base::Thread> sync_thread, 31 std::unique_ptr<base::Thread> sync_thread,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 void set_fail_initial_download(bool should_fail); 115 void set_fail_initial_download(bool should_fail);
116 116
117 private: 117 private:
118 bool fail_initial_download_; 118 bool fail_initial_download_;
119 }; 119 };
120 120
121 } // namespace syncer 121 } // namespace syncer
122 122
123 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 123 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl_unittest.cc ('k') | components/sync/driver/glue/sync_backend_host_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698