#include "device/gamepad/abstract_haptic_gamepad.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "device/gamepad/public/mojom/gamepad.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
namespace {
constexpr double kDurationMillis = …;
constexpr double kNonZeroStartDelayMillis = …;
constexpr double kZeroStartDelayMillis = …;
constexpr double kStrongMagnitude = …;
constexpr double kWeakMagnitude = …;
constexpr base::TimeDelta kPendingTaskDuration = …;
class FakeHapticGamepad final : public AbstractHapticGamepad { … };
class AbstractHapticGamepadTest : public testing::Test { … };
TEST_F(AbstractHapticGamepadTest, PlayEffectTest) { … }
TEST_F(AbstractHapticGamepadTest, ResetVibrationTest) { … }
TEST_F(AbstractHapticGamepadTest, UnsupportedEffectTypeTest) { … }
TEST_F(AbstractHapticGamepadTest, StartDelayTest) { … }
TEST_F(AbstractHapticGamepadTest, ZeroStartDelayPreemptionTest) { … }
TEST_F(AbstractHapticGamepadTest, NonZeroStartDelayPreemptionTest) { … }
TEST_F(AbstractHapticGamepadTest, ResetVibrationPreemptionTest) { … }
}
}