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

Unified Diff: sync/engine/syncer_unittest.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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/engine/sync_scheduler_whitebox_unittest.cc ('k') | sync/engine/traffic_recorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/syncer_unittest.cc
diff --git a/sync/engine/syncer_unittest.cc b/sync/engine/syncer_unittest.cc
index 56908df4d14144a5adc79ca4cd59a229435c27b7..103980862a3449543a54540370047d13baf01ea7 100644
--- a/sync/engine/syncer_unittest.cc
+++ b/sync/engine/syncer_unittest.cc
@@ -32,6 +32,7 @@
#include "sync/engine/syncer_proto_util.h"
#include "sync/engine/syncer_util.h"
#include "sync/engine/syncproto.h"
+#include "sync/engine/traffic_recorder.h"
#include "sync/protocol/bookmark_specifics.pb.h"
#include "sync/protocol/nigori_specifics.pb.h"
#include "sync/protocol/preference_specifics.pb.h"
@@ -114,7 +115,11 @@ class SyncerTest : public testing::Test,
public ModelSafeWorkerRegistrar,
public SyncEngineEventListener {
protected:
- SyncerTest() : syncer_(NULL), saw_syncer_event_(false) {}
+ SyncerTest()
+ : syncer_(NULL),
+ saw_syncer_event_(false),
+ traffic_recorder_(0, 0) {
+}
// SyncSession::Delegate implementation.
virtual void OnSilencedUntil(const base::TimeTicks& silenced_until) OVERRIDE {
@@ -209,7 +214,8 @@ class SyncerTest : public testing::Test,
context_.reset(
new SyncSessionContext(
mock_server_.get(), directory(), this,
- &extensions_activity_monitor_, listeners, NULL));
+ &extensions_activity_monitor_, listeners, NULL,
+ &traffic_recorder_));
ASSERT_FALSE(context_->resolver());
syncer_ = new Syncer();
session_.reset(MakeSession());
@@ -512,6 +518,7 @@ class SyncerTest : public testing::Test,
scoped_refptr<ModelSafeWorker> worker_;
syncable::ModelTypeSet enabled_datatypes_;
+ browser_sync::TrafficRecorder traffic_recorder_;
DISALLOW_COPY_AND_ASSIGN(SyncerTest);
};
« no previous file with comments | « sync/engine/sync_scheduler_whitebox_unittest.cc ('k') | sync/engine/traffic_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698