#include <map>
#include <utility>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/device/device_service_test_base.h"
#include "services/device/public/mojom/wake_lock.mojom.h"
#include "services/device/public/mojom/wake_lock_provider.mojom.h"
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "chromeos/lacros/lacros_test_helper.h"
#endif
namespace device {
namespace {
class TestWakeLockObserver : public mojom::WakeLockObserver { … };
class WakeLockTest : public DeviceServiceTestBase { … };
TEST_F(WakeLockTest, RequestThenCancel) { … }
TEST_F(WakeLockTest, CancelThenRequest) { … }
TEST_F(WakeLockTest, MultipleRequests) { … }
TEST_F(WakeLockTest, ChangeType) { … }
TEST_F(WakeLockTest, OnWakeLockProviderConnectionError) { … }
TEST_F(WakeLockTest, MultipleClients) { … }
TEST_F(WakeLockTest, OnWakeLockConnectionError) { … }
TEST_F(WakeLockTest, MixedTest) { … }
TEST_F(WakeLockTest, SameWakeLockTypeObserverTest) { … }
TEST_F(WakeLockTest, DifferentWakeLockTypesObserverTest) { … }
}
}