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

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

Issue 1292353006: Mac Changes for BubbleManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mcdb-mac-3.gitbr
Patch Set: Created 5 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_
7 7
8 // TODO(hcarmona): compile this
9
8 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" 10 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" 11 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
10 12
11 class PermissionBubbleManager; 13 class PermissionBubbleManager;
12 14
13 // Provides a skeleton class for unit testing, when trying to test the bubble 15 // Provides a skeleton class for unit testing, when trying to test the bubble
14 // manager logic. Should not be used for anything that requires actual UI. 16 // manager logic. Should not be used for anything that requires actual UI.
15 // See example usage in 17 // See example usage in
16 // chrome/browser/geolocation/geolocation_permission_context_unittest.cc. 18 // chrome/browser/geolocation/geolocation_permission_context_unittest.cc.
17 class MockPermissionBubbleView : public PermissionBubbleView { 19 class MockPermissionBubbleView : public PermissionBubbleView {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 int show_count_; 60 int show_count_;
59 int requests_count_; 61 int requests_count_;
60 bool can_accept_updates_; 62 bool can_accept_updates_;
61 Delegate* delegate_; 63 Delegate* delegate_;
62 bool browser_test_; 64 bool browser_test_;
63 std::vector<PermissionBubbleRequest*> permission_requests_; 65 std::vector<PermissionBubbleRequest*> permission_requests_;
64 std::vector<bool> permission_states_; 66 std::vector<bool> permission_states_;
65 }; 67 };
66 68
67 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_ 69 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698