forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock_local_change_processor.h
39 lines (30 loc) · 1.44 KB
/
mock_local_change_processor.h
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
31
32
33
34
35
36
37
38
39
// 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.
#ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_
#define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_
#include "base/macros.h"
#include "chrome/browser/sync_file_system/local_change_processor.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace sync_file_system {
class MockLocalChangeProcessor : public LocalChangeProcessor {
public:
MockLocalChangeProcessor();
virtual ~MockLocalChangeProcessor();
// LocalChangeProcessor override.
MOCK_METHOD5(ApplyLocalChange,
void(const FileChange& change,
const base::FilePath& local_file_path,
const SyncFileMetadata& local_file_metadata,
const storage::FileSystemURL& url,
const SyncStatusCallback& callback));
private:
void ApplyLocalChangeStub(const FileChange& change,
const base::FilePath& local_file_path,
const SyncFileMetadata& local_file_metadata,
const storage::FileSystemURL& url,
const SyncStatusCallback& callback);
DISALLOW_COPY_AND_ASSIGN(MockLocalChangeProcessor);
};
} // namespace sync_file_system
#endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_