Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: chrome/browser/ui/website_settings/mock_permission_bubble_delegate.h

Issue 151593005: Implement permission bubble view for Cocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more feedback addressed Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_DELEGATE_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_DELEGATE_H_
7
8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_delegate.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 class MockPermissionBubbleDelegate : public PermissionBubbleDelegate {
markusheintz_ 2014/02/04 09:53:38 FYI. There is already a MockDelegate in the permis
leng 2014/02/04 21:48:22 Yes, I saw that after I'd added this version. I'd
13 public:
14 explicit MockPermissionBubbleDelegate(const std::string& text);
15 virtual ~MockPermissionBubbleDelegate();
16
17 MOCK_CONST_METHOD0(GetMessageText, base::string16());
18 MOCK_CONST_METHOD0(GetMessageTextFragment, base::string16());
19 MOCK_CONST_METHOD0(GetAlternateAcceptButtonText, base::string16());
20 MOCK_CONST_METHOD0(GetAlternateDenyButtonText, base::string16());
21 MOCK_METHOD0(PermissionGranted, void());
22 MOCK_METHOD0(PermissionDenied, void());
23 MOCK_METHOD0(Cancelled, void());
24 MOCK_METHOD0(RequestFinished, void());
25
26 void SetText(const base::string16& text);
27 };
28
29 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698