#include "third_party/blink/renderer/modules/wake_lock/wake_lock_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/modules/wake_lock/wake_lock_test_utils.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "v8/include/v8.h"
namespace blink {
namespace {
WakeLockManager* MakeManager(WakeLockTestingContext& context,
V8WakeLockType::Enum type) { … }
}
TEST(WakeLockManagerTest, AcquireWakeLock) { … }
TEST(WakeLockManagerTest, ReleaseAllWakeLocks) { … }
TEST(WakeLockManagerTest, ReleaseOneWakeLock) { … }
TEST(WakeLockManagerTest, ClearEmptyWakeLockSentinelList) { … }
TEST(WakeLockManagerTest, ClearWakeLocks) { … }
TEST(WakeLockManagerTest, WakeLockConnectionError) { … }
}