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

Side by Side Diff: sync/test/engine/syncer_command_test.cc

Issue 9826035: [Sync] Display the client server traffic log in about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. Created 8 years, 8 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
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "sync/test/engine/syncer_command_test.h" 5 #include "sync/test/engine/syncer_command_test.h"
6 6
7 namespace browser_sync { 7 namespace browser_sync {
8 8
9 const unsigned int kMaxMessages = 10;
10 const unsigned int kMaxMessageSize = 5 * 1024;
9 11
10 SyncerCommandTestBase::SyncerCommandTestBase() { 12 SyncerCommandTestBase::SyncerCommandTestBase()
13 : traffic_recorder_(kMaxMessages, kMaxMessageSize) {
11 } 14 }
12 15
13 SyncerCommandTestBase::~SyncerCommandTestBase() { 16 SyncerCommandTestBase::~SyncerCommandTestBase() {
14 } 17 }
15 18
16 void SyncerCommandTestBase::SetUp() { 19 void SyncerCommandTestBase::SetUp() {
17 ResetContext(); 20 ResetContext();
18 // The session always expects there to be a passive worker. 21 // The session always expects there to be a passive worker.
19 workers()->push_back( 22 workers()->push_back(
20 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE))); 23 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE)));
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 workers()->push_back( 57 workers()->push_back(
55 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE))); 58 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE)));
56 ResetContext(); 59 ResetContext();
57 } 60 }
58 61
59 Directory* MockDirectorySyncerCommandTest::directory() { 62 Directory* MockDirectorySyncerCommandTest::directory() {
60 return &mock_directory_; 63 return &mock_directory_;
61 } 64 }
62 65
63 } // namespace browser_sync 66 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698