blob: 29c5e9b538179044269a8171e777dd9fec17eb8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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.
#ifndef CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_
#define CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_
#pragma once
#include "base/tracked.h"
#include "chrome/browser/sync/api/syncable_service.h"
#include "chrome/browser/sync/api/sync_change.h"
#include "testing/gmock/include/gmock/gmock.h"
class SyncableServiceMock : public SyncableService {
public:
SyncableServiceMock();
virtual ~SyncableServiceMock();
MOCK_METHOD3(MergeDataAndStartSyncing, bool(
syncable::ModelType, const SyncDataList&,
SyncChangeProcessor* sync_processor));
MOCK_METHOD1(StopSyncing, void(syncable::ModelType));
MOCK_CONST_METHOD1(GetAllSyncData, SyncDataList(syncable::ModelType));
MOCK_METHOD2(ProcessSyncChanges,
void(const tracked_objects::Location&, const SyncChangeList&));
};
#endif // CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_
|