| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_TEST_PROFILE_MOCK_H__ | |
| 6 #define CHROME_TEST_PROFILE_MOCK_H__ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/test/testing_profile.h" | |
| 10 | |
| 11 #include "testing/gmock/include/gmock/gmock.h" | |
| 12 | |
| 13 class ProfileMock : public TestingProfile { | |
| 14 public: | |
| 15 ProfileMock(); | |
| 16 virtual ~ProfileMock(); | |
| 17 | |
| 18 MOCK_METHOD0(GetBookmarkModel, BookmarkModel*()); | |
| 19 MOCK_METHOD1(GetHistoryService, HistoryService*(ServiceAccessType access)); | |
| 20 MOCK_METHOD0(GetHistoryServiceWithoutCreating, HistoryService*()); | |
| 21 MOCK_METHOD1(GetWebDataService, WebDataService*(ServiceAccessType access)); | |
| 22 MOCK_METHOD0(GetPersonalDataManager, PersonalDataManager*()); | |
| 23 MOCK_METHOD1(GetPasswordStore, PasswordStore* (ServiceAccessType access)); | |
| 24 MOCK_METHOD0(GetTokenService, TokenService*()); | |
| 25 MOCK_METHOD0(GetProfileSyncService, ProfileSyncService*()); | |
| 26 }; | |
| 27 | |
| 28 #endif // CHROME_TEST_PROFILE_MOCK_H__ | |
| OLD | NEW |