summaryrefslogtreecommitdiffstats
path: root/sync/test
diff options
context:
space:
mode:
authorlipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-01 20:22:44 +0000
committerlipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-01 20:22:44 +0000
commitb01a9b9bad2a7f403c67c0cc7d5dfe5d119a0dc8 (patch)
tree52cac4ff89e4fb2dc6666260f5035ffd84d20bb9 /sync/test
parent1d8634849b6155e97fb4a87fff7022d545133aad (diff)
downloadchromium_src-b01a9b9bad2a7f403c67c0cc7d5dfe5d119a0dc8.zip
chromium_src-b01a9b9bad2a7f403c67c0cc7d5dfe5d119a0dc8.tar.gz
chromium_src-b01a9b9bad2a7f403c67c0cc7d5dfe5d119a0dc8.tar.bz2
A new 'traffic' tab is introduced and clicking the button on the tab would display the traffic.
BUG=117615 TEST= Review URL: http://codereview.chromium.org/9826035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130081 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/test')
-rw-r--r--sync/test/engine/syncer_command_test.cc5
-rw-r--r--sync/test/engine/syncer_command_test.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/sync/test/engine/syncer_command_test.cc b/sync/test/engine/syncer_command_test.cc
index 53af26a..9275e17 100644
--- a/sync/test/engine/syncer_command_test.cc
+++ b/sync/test/engine/syncer_command_test.cc
@@ -6,8 +6,11 @@
namespace browser_sync {
+const unsigned int kMaxMessages = 10;
+const unsigned int kMaxMessageSize = 5 * 1024;
-SyncerCommandTestBase::SyncerCommandTestBase() {
+SyncerCommandTestBase::SyncerCommandTestBase()
+ : traffic_recorder_(kMaxMessages, kMaxMessageSize) {
}
SyncerCommandTestBase::~SyncerCommandTestBase() {
diff --git a/sync/test/engine/syncer_command_test.h b/sync/test/engine/syncer_command_test.h
index 3989def..bfa567f 100644
--- a/sync/test/engine/syncer_command_test.h
+++ b/sync/test/engine/syncer_command_test.h
@@ -15,6 +15,7 @@
#include "base/message_loop.h"
#include "sync/engine/model_changing_syncer_command.h"
#include "sync/engine/model_safe_worker.h"
+#include "sync/engine/traffic_recorder.h"
#include "sync/sessions/debug_info_getter.h"
#include "sync/sessions/sync_session.h"
#include "sync/sessions/sync_session_context.h"
@@ -126,7 +127,8 @@ class SyncerCommandTestBase : public testing::Test,
mock_server_.get(), directory(),
registrar(), &extensions_activity_monitor_,
std::vector<SyncEngineEventListener*>(),
- &mock_debug_info_getter_));
+ &mock_debug_info_getter_,
+ &traffic_recorder_));
context_->set_account_name(directory()->name());
ClearSession();
}
@@ -199,6 +201,7 @@ class SyncerCommandTestBase : public testing::Test,
ModelSafeRoutingInfo routing_info_;
NiceMock<MockDebugInfoGetter> mock_debug_info_getter_;
FakeExtensionsActivityMonitor extensions_activity_monitor_;
+ TrafficRecorder traffic_recorder_;
DISALLOW_COPY_AND_ASSIGN(SyncerCommandTestBase);
};