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

Unified Diff: sync/test/engine/syncer_command_test.cc

Issue 72403003: sync: Per-type update application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix typo Created 7 years 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/test/engine/syncer_command_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/syncer_command_test.cc
diff --git a/sync/test/engine/syncer_command_test.cc b/sync/test/engine/syncer_command_test.cc
deleted file mode 100644
index 8cf8e13bec1b4bfdd061cf693818d7a24dafe815..0000000000000000000000000000000000000000
--- a/sync/test/engine/syncer_command_test.cc
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sync/test/engine/syncer_command_test.h"
-
-namespace syncer {
-
-const unsigned int kMaxMessages = 10;
-const unsigned int kMaxMessageSize = 5 * 1024;
-
-void SyncerCommandTestBase::OnThrottled(
- const base::TimeDelta& throttle_duration) {
- FAIL() << "Should not get silenced.";
-}
-
-void SyncerCommandTestBase::OnTypesThrottled(
- ModelTypeSet types,
- const base::TimeDelta& throttle_duration) {
- FAIL() << "Should not get silenced.";
-}
-
-bool SyncerCommandTestBase::IsCurrentlyThrottled() {
- return false;
-}
-
-void SyncerCommandTestBase::OnReceivedLongPollIntervalUpdate(
- const base::TimeDelta& new_interval) {
- FAIL() << "Should not get poll interval update.";
-}
-
-void SyncerCommandTestBase::OnReceivedShortPollIntervalUpdate(
- const base::TimeDelta& new_interval) {
- FAIL() << "Should not get poll interval update.";
-}
-
-void SyncerCommandTestBase::OnReceivedSessionsCommitDelay(
- const base::TimeDelta& new_delay) {
- FAIL() << "Should not get sessions commit delay.";
-}
-
-void SyncerCommandTestBase::OnReceivedClientInvalidationHintBufferSize(
- int size) {
- FAIL() << "Should not get hint buffer size.";
-}
-
-void SyncerCommandTestBase::OnSyncProtocolError(
- const sessions::SyncSessionSnapshot& session) {
- return;
-}
-SyncerCommandTestBase::SyncerCommandTestBase()
- : traffic_recorder_(kMaxMessages, kMaxMessageSize) {
-}
-
-SyncerCommandTestBase::~SyncerCommandTestBase() {
-}
-
-void SyncerCommandTestBase::SetUp() {
- extensions_activity_ = new ExtensionsActivity();
-
- // The session always expects there to be a passive worker.
- workers()->push_back(
- make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE)));
- ResetContext();
-}
-
-void SyncerCommandTestBase::TearDown() {
-}
-
-syncable::Directory* SyncerCommandTest::directory() {
- return dir_maker_.directory();
-}
-
-void SyncerCommandTest::SetUp() {
- dir_maker_.SetUp();
- SyncerCommandTestBase::SetUp();
-}
-
-void SyncerCommandTest::TearDown() {
- dir_maker_.TearDown();
-}
-
-} // namespace syncer
« 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