summaryrefslogtreecommitdiffstats
path: root/chrome/test/base/profile_mock.h
blob: 13582ebbaf34ca4a242cbf66d07e2e2fb070d728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_TEST_BASE_PROFILE_MOCK_H_
#define CHROME_TEST_BASE_PROFILE_MOCK_H_
#pragma once

#include "chrome/test/base/testing_profile.h"

#include "testing/gmock/include/gmock/gmock.h"

class ProfileMock : public TestingProfile {
 public:
  ProfileMock();
  virtual ~ProfileMock();

  MOCK_METHOD0(GetBookmarkModel, BookmarkModel*());
  MOCK_METHOD1(GetHistoryService, HistoryService*(ServiceAccessType access));
  MOCK_METHOD0(GetHistoryServiceWithoutCreating, HistoryService*());
  MOCK_METHOD1(GetWebDataService, WebDataService*(ServiceAccessType access));
  MOCK_METHOD1(GetPasswordStore, PasswordStore* (ServiceAccessType access));
  MOCK_METHOD0(GetTokenService, TokenService*());
  MOCK_METHOD0(GetProfileSyncService, ProfileSyncService*());
};

#endif  // CHROME_TEST_BASE_PROFILE_MOCK_H_