OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_BASE_PROFILE_MOCK_H_ | 5 #ifndef CHROME_TEST_BASE_PROFILE_MOCK_H_ |
6 #define CHROME_TEST_BASE_PROFILE_MOCK_H_ | 6 #define CHROME_TEST_BASE_PROFILE_MOCK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
10 | 10 |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 | 12 |
13 class ProfileMock : public TestingProfile { | 13 class ProfileMock : public TestingProfile { |
14 public: | 14 public: |
15 ProfileMock(); | 15 ProfileMock(); |
16 virtual ~ProfileMock(); | 16 virtual ~ProfileMock(); |
17 | 17 |
18 MOCK_METHOD0(GetBookmarkModel, BookmarkModel*()); | 18 MOCK_METHOD0(GetBookmarkModel, BookmarkModel*()); |
19 MOCK_METHOD1(GetHistoryService, HistoryService*(ServiceAccessType access)); | 19 MOCK_METHOD1(GetHistoryService, HistoryService*(ServiceAccessType access)); |
20 MOCK_METHOD0(GetHistoryServiceWithoutCreating, HistoryService*()); | 20 MOCK_METHOD0(GetHistoryServiceWithoutCreating, HistoryService*()); |
21 MOCK_METHOD1(GetWebDataService, WebDataService*(ServiceAccessType access)); | |
22 MOCK_METHOD1(GetPasswordStore, PasswordStore* (ServiceAccessType access)); | 21 MOCK_METHOD1(GetPasswordStore, PasswordStore* (ServiceAccessType access)); |
23 }; | 22 }; |
24 | 23 |
25 #endif // CHROME_TEST_BASE_PROFILE_MOCK_H_ | 24 #endif // CHROME_TEST_BASE_PROFILE_MOCK_H_ |
OLD | NEW |