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_TEST_PROFILE_MOCK_H__ | 5 #ifndef CHROME_TEST_PROFILE_MOCK_H__ |
6 #define CHROME_TEST_PROFILE_MOCK_H__ | 6 #define CHROME_TEST_PROFILE_MOCK_H__ |
7 | 7 |
8 #include "chrome/test/testing_profile.h" | 8 #include "chrome/test/testing_profile.h" |
9 | 9 |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 class ProfileMock : public TestingProfile { | 12 class ProfileMock : public TestingProfile { |
13 public: | 13 public: |
14 MOCK_METHOD0(GetBookmarkModel, BookmarkModel*()); | 14 MOCK_METHOD0(GetBookmarkModel, BookmarkModel*()); |
15 MOCK_METHOD1(GetHistoryService, HistoryService*(ServiceAccessType access)); | 15 MOCK_METHOD1(GetHistoryService, HistoryService*(ServiceAccessType access)); |
16 MOCK_METHOD0(GetHistoryServiceWithoutCreating, HistoryService*()); | 16 MOCK_METHOD0(GetHistoryServiceWithoutCreating, HistoryService*()); |
17 MOCK_METHOD1(GetWebDataService, WebDataService*(ServiceAccessType access)); | 17 MOCK_METHOD1(GetWebDataService, WebDataService*(ServiceAccessType access)); |
18 MOCK_METHOD0(GetPersonalDataManager, PersonalDataManager*()); | 18 MOCK_METHOD0(GetPersonalDataManager, PersonalDataManager*()); |
| 19 MOCK_METHOD1(GetPasswordStore, PasswordStore* (ServiceAccessType access)); |
19 }; | 20 }; |
20 | 21 |
21 #endif // CHROME_TEST_PROFILE_MOCK_H__ | 22 #endif // CHROME_TEST_PROFILE_MOCK_H__ |
OLD | NEW |