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

Unified Diff: chrome/browser/ui/website_settings/mock_permission_bubble_view.h

Issue 2182883002: Permissions: Rename PermissionBubbleView to PermissionPromptInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig@ review Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/website_settings/mock_permission_bubble_view.h
diff --git a/chrome/browser/ui/website_settings/mock_permission_bubble_view.h b/chrome/browser/ui/website_settings/mock_permission_bubble_view.h
deleted file mode 100644
index 745299aff70130a7a7d28e455bd44708333fa12d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/website_settings/mock_permission_bubble_view.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 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_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_
-#define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_
-
-#include "chrome/browser/ui/website_settings/permission_bubble_view.h"
-
-class MockPermissionBubbleFactory;
-class PermissionRequestManager;
-
-// Provides a skeleton class for unit and browser testing when trying to test
-// the bubble manager logic. Should not be used for anything that requires
-// actual UI.
-// Use the MockPermissionBubbleFactory to create this.
-class MockPermissionBubbleView : public PermissionBubbleView {
- public:
- ~MockPermissionBubbleView() override;
-
- // PermissionBubbleView:
- void SetDelegate(Delegate* delegate) override {}
- void Show(const std::vector<PermissionRequest*>& requests,
- const std::vector<bool>& accept_state) override;
- bool CanAcceptRequestUpdate() override;
- void Hide() override;
- bool IsVisible() override;
- void UpdateAnchorPosition() override;
- gfx::NativeWindow GetNativeWindow() override;
-
- private:
- friend class MockPermissionBubbleFactory;
-
- MockPermissionBubbleView(MockPermissionBubbleFactory* factory,
- PermissionRequestManager* manager);
-
- MockPermissionBubbleFactory* factory_;
- PermissionRequestManager* manager_;
- bool can_update_ui_;
- bool is_visible_;
-};
-
-#endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698