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

Side by Side Diff: chrome/browser/sync/engine/read_node_mock.h

Issue 6056008: Move lots of GMock stuff out of line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright junk Created 9 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_ 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_ 6 #define CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/sync/engine/syncapi.h" 11 #include "chrome/browser/sync/engine/syncapi.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 class ReadNodeMock : public sync_api::ReadNode { 14 class ReadNodeMock : public sync_api::ReadNode {
15 public: 15 public:
16 ReadNodeMock() { } 16 ReadNodeMock() {}
Nico 2011/01/05 01:14:14 this file was too annoying to deinline?
17 virtual ~ReadNodeMock() {} 17 virtual ~ReadNodeMock() {}
18
18 MOCK_METHOD2(InitByClientTagLookup, 19 MOCK_METHOD2(InitByClientTagLookup,
19 bool(syncable::ModelType model_type, const std::string& tag)); 20 bool(syncable::ModelType model_type, const std::string& tag));
20 MOCK_CONST_METHOD0(GetAutofillProfileSpecifics, 21 MOCK_CONST_METHOD0(GetAutofillProfileSpecifics,
21 const sync_pb::AutofillProfileSpecifics&()); 22 const sync_pb::AutofillProfileSpecifics&());
22 MOCK_CONST_METHOD0(GetId, int64()); 23 MOCK_CONST_METHOD0(GetId, int64());
23 MOCK_CONST_METHOD0(GetFirstChildId, int64()); 24 MOCK_CONST_METHOD0(GetFirstChildId, int64());
24 MOCK_CONST_METHOD0(GetFirstChild, int64()); 25 MOCK_CONST_METHOD0(GetFirstChild, int64());
25 MOCK_CONST_METHOD0(GetSuccessorId, int64()); 26 MOCK_CONST_METHOD0(GetSuccessorId, int64());
26 MOCK_METHOD1(InitByIdLookup, bool(int64 id)); 27 MOCK_METHOD1(InitByIdLookup, bool(int64 id));
27 }; 28 };
29
28 #endif // CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_ 30 #endif // CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_
29 31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698