summaryrefslogtreecommitdiffstats
path: root/chrome/browser/protector/mock_setting_change.h
blob: c665ced3528c53999fbe976a2a83d310cda85c1d (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
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) 2012 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_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_
#define CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_
#pragma once

#include "base/compiler_specific.h"
#include "chrome/browser/protector/base_setting_change.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace protector {

class MockSettingChange : public BaseSettingChange {
 public:
  MockSettingChange();
  virtual ~MockSettingChange();

  virtual bool Init(Profile* profile) OVERRIDE;

  MOCK_METHOD1(MockInit, bool(Profile* profile));
  MOCK_METHOD1(Apply, void(Browser*));
  MOCK_METHOD1(Discard, void(Browser*));
  MOCK_METHOD0(Timeout, void());

  MOCK_CONST_METHOD0(GetBadgeIconID, int());
  MOCK_CONST_METHOD0(GetMenuItemIconID, int());
  MOCK_CONST_METHOD0(GetBubbleIconID, int());

  MOCK_CONST_METHOD0(GetBubbleTitle, string16());
  MOCK_CONST_METHOD0(GetBubbleMessage, string16());
  MOCK_CONST_METHOD0(GetApplyButtonText, string16());
  MOCK_CONST_METHOD0(GetDiscardButtonText, string16());
};

}  // namespace protector

#endif  // CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_