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

Side by Side Diff: components/sync/test/engine/mock_nudge_handler.cc

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. 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 #include "components/sync/test/engine/mock_nudge_handler.h" 5 #include "components/sync/test/engine/mock_nudge_handler.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 MockNudgeHandler::MockNudgeHandler() 9 MockNudgeHandler::MockNudgeHandler()
10 : num_initial_nudges_(0), num_commit_nudges_(0), num_refresh_nudges_(0) {} 10 : num_initial_nudges_(0), num_commit_nudges_(0), num_refresh_nudges_(0) {}
11 11
12 MockNudgeHandler::~MockNudgeHandler() {} 12 MockNudgeHandler::~MockNudgeHandler() {}
13 13
14 void MockNudgeHandler::NudgeForInitialDownload(syncer::ModelType type) { 14 void MockNudgeHandler::NudgeForInitialDownload(ModelType type) {
15 num_initial_nudges_++; 15 num_initial_nudges_++;
16 } 16 }
17 17
18 void MockNudgeHandler::NudgeForCommit(syncer::ModelType type) { 18 void MockNudgeHandler::NudgeForCommit(ModelType type) {
19 num_commit_nudges_++; 19 num_commit_nudges_++;
20 } 20 }
21 21
22 void MockNudgeHandler::NudgeForRefresh(syncer::ModelType type) { 22 void MockNudgeHandler::NudgeForRefresh(ModelType type) {
23 num_refresh_nudges_++; 23 num_refresh_nudges_++;
24 } 24 }
25 25
26 int MockNudgeHandler::GetNumInitialDownloadNudges() const { 26 int MockNudgeHandler::GetNumInitialDownloadNudges() const {
27 return num_initial_nudges_; 27 return num_initial_nudges_;
28 } 28 }
29 29
30 int MockNudgeHandler::GetNumCommitNudges() const { 30 int MockNudgeHandler::GetNumCommitNudges() const {
31 return num_commit_nudges_; 31 return num_commit_nudges_;
32 } 32 }
33 33
34 int MockNudgeHandler::GetNumRefreshNudges() const { 34 int MockNudgeHandler::GetNumRefreshNudges() const {
35 return num_refresh_nudges_; 35 return num_refresh_nudges_;
36 } 36 }
37 37
38 void MockNudgeHandler::ClearCounters() { 38 void MockNudgeHandler::ClearCounters() {
39 num_initial_nudges_ = 0; 39 num_initial_nudges_ = 0;
40 num_commit_nudges_ = 0; 40 num_commit_nudges_ = 0;
41 num_refresh_nudges_ = 0; 41 num_refresh_nudges_ = 0;
42 } 42 }
43 43
44 } // namespace syncer 44 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/test/engine/mock_nudge_handler.h ('k') | components/sync/test/engine/mock_update_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698