Index: chrome/browser/sync/glue/sync_backend_host_mock.h |
diff --git a/chrome/browser/sync/glue/sync_backend_host_mock.h b/chrome/browser/sync/glue/sync_backend_host_mock.h |
index 4035f974165ddcf408e05cdbf76669abc1381cf0..e133a5794a23e7f4851f28ea420063c090814cfd 100644 |
--- a/chrome/browser/sync/glue/sync_backend_host_mock.h |
+++ b/chrome/browser/sync/glue/sync_backend_host_mock.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 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. |
@@ -23,20 +23,8 @@ ACTION(InvokeTask) { |
class SyncBackendHostMock : public SyncBackendHost { |
public: |
- SyncBackendHostMock() { |
- // By default, the RequestPause and RequestResume methods will |
- // send the confirmation notification and return true. |
- ON_CALL(*this, RequestPause()). |
- WillByDefault(testing::DoAll(Notify(NotificationType::SYNC_PAUSED), |
- testing::Return(true))); |
- ON_CALL(*this, RequestResume()). |
- WillByDefault(testing::DoAll(Notify(NotificationType::SYNC_RESUMED), |
- testing::Return(true))); |
- |
- // By default, invoke the ready callback. |
- ON_CALL(*this, ConfigureDataTypes(testing::_, testing::_)). |
- WillByDefault(InvokeTask()); |
- } |
+ SyncBackendHostMock(); |
+ virtual ~SyncBackendHostMock(); |
MOCK_METHOD2(ConfigureDataTypes, |
void(const std::set<syncable::ModelType>&, CancelableTask*)); |