OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_MODEL_ASSOCIATOR_MOCK_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__ |
6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__ |
7 | 7 |
8 #include "chrome/browser/sync/glue/model_associator.h" | 8 #include "chrome/browser/sync/glue/model_associator.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 | 10 |
11 namespace browser_sync { | 11 namespace browser_sync { |
12 | 12 |
13 class ModelAssociatorMock : public AssociatorInterface { | 13 class ModelAssociatorMock : public AssociatorInterface { |
14 public: | 14 public: |
15 MOCK_METHOD0(AssociateModels, bool()); | 15 MOCK_METHOD0(AssociateModels, bool()); |
16 MOCK_METHOD0(DisassociateModels, bool()); | 16 MOCK_METHOD0(DisassociateModels, bool()); |
17 MOCK_METHOD1(SyncModelHasUserCreatedNodes, bool(bool* has_nodes)); | 17 MOCK_METHOD1(SyncModelHasUserCreatedNodes, bool(bool* has_nodes)); |
18 MOCK_METHOD1(ChromeModelHasUserCreatedNodes, bool(bool* has_nodes)); | |
19 MOCK_METHOD0(AbortAssociation, void()); | 18 MOCK_METHOD0(AbortAssociation, void()); |
20 }; | 19 }; |
21 | 20 |
22 } // namespace browser_sync | 21 } // namespace browser_sync |
23 | 22 |
24 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__ | 23 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__ |
OLD | NEW |