1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
12 class MockPermissionBubbleRequest
: public PermissionBubbleRequest
{
14 MockPermissionBubbleRequest();
15 explicit MockPermissionBubbleRequest(const std::string
& text
);
16 explicit MockPermissionBubbleRequest(const std::string
& text
,
18 explicit MockPermissionBubbleRequest(const std::string
& text
,
19 const std::string
& accept_label
,
20 const std::string
& deny_label
);
21 ~MockPermissionBubbleRequest() override
;
23 int GetIconId() const override
;
24 base::string16
GetMessageText() const override
;
25 base::string16
GetMessageTextFragment() const override
;
26 bool HasUserGesture() const override
;
27 GURL
GetRequestingHostname() const override
;
29 void PermissionGranted() override
;
30 void PermissionDenied() override
;
31 void Cancelled() override
;
32 void RequestFinished() override
;
38 void SetHasUserGesture();
47 base::string16 accept_label_
;
48 base::string16 deny_label_
;
52 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_