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

Side by Side Diff: components/sync/test/fake_server/fake_server.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_FAKE_SERVER_FAKE_SERVER_H_ 5 #ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_FAKE_SERVER_H_
6 #define COMPONENTS_SYNC_TEST_FAKE_SERVER_FAKE_SERVER_H_ 6 #define COMPONENTS_SYNC_TEST_FAKE_SERVER_FAKE_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 EntityMap entities_; 223 EntityMap entities_;
224 224
225 // All Keystore keys known to the server. 225 // All Keystore keys known to the server.
226 std::vector<std::string> keystore_keys_; 226 std::vector<std::string> keystore_keys_;
227 227
228 // Used as the error_code field of ClientToServerResponse on all responses 228 // Used as the error_code field of ClientToServerResponse on all responses
229 // except when |triggered_actionable_error_| is set. 229 // except when |triggered_actionable_error_| is set.
230 sync_pb::SyncEnums::ErrorType error_type_; 230 sync_pb::SyncEnums::ErrorType error_type_;
231 231
232 // Used as the error field of ClientToServerResponse when its pointer is not 232 // Used as the error field of ClientToServerResponse when its pointer is not
233 // NULL. 233 // null.
234 std::unique_ptr<sync_pb::ClientToServerResponse_Error> 234 std::unique_ptr<sync_pb::ClientToServerResponse_Error>
235 triggered_actionable_error_; 235 triggered_actionable_error_;
236 236
237 // These values are used in tandem to return a triggered error (either 237 // These values are used in tandem to return a triggered error (either
238 // |error_type_| or |triggered_actionable_error_|) on every other request. 238 // |error_type_| or |triggered_actionable_error_|) on every other request.
239 // |alternate_triggered_errors_| is set if this feature is enabled and 239 // |alternate_triggered_errors_| is set if this feature is enabled and
240 // |request_counter_| is used to send triggered errors on odd-numbered 240 // |request_counter_| is used to send triggered errors on odd-numbered
241 // requests. Note that |request_counter_| can be reset and is not necessarily 241 // requests. Note that |request_counter_| can be reset and is not necessarily
242 // indicative of the total number of requests handled during the object's 242 // indicative of the total number of requests handled during the object's
243 // lifetime. 243 // lifetime.
(...skipping 15 matching lines...) Expand all
259 base::ThreadChecker thread_checker_; 259 base::ThreadChecker thread_checker_;
260 260
261 // Creates WeakPtr versions of the current FakeServer. This must be the last 261 // Creates WeakPtr versions of the current FakeServer. This must be the last
262 // data member! 262 // data member!
263 base::WeakPtrFactory<FakeServer> weak_ptr_factory_; 263 base::WeakPtrFactory<FakeServer> weak_ptr_factory_;
264 }; 264 };
265 265
266 } // namespace fake_server 266 } // namespace fake_server
267 267
268 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_FAKE_SERVER_H_ 268 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_FAKE_SERVER_H_
OLDNEW
« no previous file with comments | « components/sync/test/fake_server/bookmark_entity_builder.cc ('k') | components/sync/test/fake_server/fake_server_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698