#include "extensions/browser/api/power/power_api.h"
#include <memory>
#include <string>
#include "base/containers/circular_deque.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "extensions/browser/api_test_utils.h"
#include "extensions/browser/api_unittest.h"
#include "extensions/browser/unloaded_extension_reason.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "services/device/public/mojom/wake_lock.mojom-shared.h"
namespace extensions {
namespace {
const char kDisplayArgs[] = …;
const char kSystemArgs[] = …;
const char kEmptyArgs[] = …;
enum Request { … };
class FakeWakeLockManager { … };
}
class PowerAPITest : public ApiUnitTest { … };
TEST_F(PowerAPITest, RequestAndRelease) { … }
TEST_F(PowerAPITest, RequestWithoutRelease) { … }
TEST_F(PowerAPITest, ReleaseWithoutRequest) { … }
TEST_F(PowerAPITest, UpgradeRequest) { … }
TEST_F(PowerAPITest, DowngradeRequest) { … }
TEST_F(PowerAPITest, MultipleExtensions) { … }
}