blob: e5b2fe16245d2e094075d54f0d89530b5642e878 [file] [log] [blame]
// 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(InitWhenDisabled, void(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());
MOCK_CONST_METHOD0(GetApplyDisplayName, DisplayName());
MOCK_CONST_METHOD0(GetNewSettingURL, GURL());
MOCK_CONST_METHOD0(CanBeMerged, bool());
MOCK_CONST_METHOD0(IsUserVisible, bool());
};
} // namespace protector
#endif // CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_