#include "chrome/browser/ui/exclusive_access/exclusive_access_permission_manager.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "content/public/browser/permission_controller.h"
#include "content/public/browser/permission_request_description.h"
#include "content/public/browser/permission_result.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/mock_permission_controller.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/permissions/permission_utils.h"
#include "third_party/blink/public/mojom/permissions/permission_status.mojom.h"
class ExclusiveAccessPermissionManagerTest : public BrowserWithTestWindowTest { … };
TEST_F(ExclusiveAccessPermissionManagerTest, GrantPermission) { … }
TEST_F(ExclusiveAccessPermissionManagerTest, DenyPermission) { … }
TEST_F(ExclusiveAccessPermissionManagerTest, HandleMultipleRequests) { … }
TEST_F(ExclusiveAccessPermissionManagerTest,
CloseTabBeforeRequestingPermission) { … }