chromium/content/browser/idle/idle_manager_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <tuple>
#include <utility>

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/test_future.h"
#include "base/time/time.h"
#include "content/browser/idle/idle_manager_impl.h"
#include "content/browser/permissions/permission_controller_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/permission_controller.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/mock_permission_manager.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_renderer_host.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "services/service_manager/public/cpp/bind_source_info.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/idle/idle_manager.mojom.h"
#include "ui/base/idle/idle_time_provider.h"
#include "ui/base/test/idle_test_utils.h"

IdleManagerError;
IdleStatePtr;
_;
Invoke;
NiceMock;
Return;

namespace content {

namespace {

const char kTestUrl[] =;

enum UserIdleState {};

enum ScreenIdleState {};

class MockIdleMonitor : public blink::mojom::IdleMonitor {};

class MockIdleTimeProvider : public ui::IdleTimeProvider {};

class IdleManagerTest : public RenderViewHostTestHarness {};

}  // namespace

TEST_F(IdleManagerTest, AddMonitor) {}

TEST_F(IdleManagerTest, Idle) {}

TEST_F(IdleManagerTest, UnlockingScreen) {}

TEST_F(IdleManagerTest, LockingScreen) {}

TEST_F(IdleManagerTest, LockingScreenThenIdle) {}

TEST_F(IdleManagerTest, LockingScreenAfterIdle) {}

TEST_F(IdleManagerTest, RemoveMonitorStopsPolling) {}

TEST_F(IdleManagerTest, PermissionDenied) {}

TEST_F(IdleManagerTest, SetAndClearOverrides) {}

}  // namespace content