#include "third_party/blink/renderer/modules/idle/idle_detector.h"
#include "base/memory/scoped_refptr.h"
#include "base/test/test_mock_time_task_runner.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/idle/idle_manager.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_tester.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_idle_options.h"
#include "third_party/blink/renderer/core/dom/events/native_event_listener.h"
#include "third_party/blink/renderer/modules/idle/idle_manager.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
namespace {
Invoke;
WithoutArgs;
class MockEventListener final : public NativeEventListener { … };
class FakeIdleService final : public mojom::blink::IdleManager { … };
}
TEST(IdleDetectorTest, Start) { … }
TEST(IdleDetectorTest, StartIdleWithLongThreshold) { … }
TEST(IdleDetectorTest, LockScreen) { … }
TEST(IdleDetectorTest, BecomeIdle) { … }
TEST(IdleDetectorTest, BecomeIdleAndLockScreen) { … }
TEST(IdleDetectorTest, BecomeIdleAndLockScreenWithLongThreshold) { … }
TEST(IdleDetectorTest, BecomeIdleAndLockAfterWithLongThreshold) { … }
TEST(IdleDetectorTest, BecomeIdleThenActiveBeforeThreshold) { … }
TEST(IdleDetectorTest, SetAndClearOverrides) { … }
}