blob: e1e6bf798e7f5bba399b9f9f6ecd8d51106f4696 (
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
29
30
|
// 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,
SyncError(syncable::ModelType,
const SyncDataList&,
SyncChangeProcessor* sync_processor));
MOCK_METHOD1(StopSyncing, void(syncable::ModelType));
MOCK_CONST_METHOD1(GetAllSyncData, SyncDataList(syncable::ModelType type));
MOCK_METHOD2(ProcessSyncChanges,
SyncError(const tracked_objects::Location&,
const SyncChangeList&));
};
#endif // CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_
|