chromium/device/gamepad/public/cpp/gamepad_mojom_traits_unittest.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "device/gamepad/public/cpp/gamepad_mojom_traits.h"

#include "base/test/task_environment.h"
#include "device/gamepad/public/cpp/gamepad.h"
#include "device/gamepad/public/mojom/gamepad.mojom.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace device {

namespace {

enum GamepadTestDataType {};

Gamepad GetWebGamepadInstance(GamepadTestDataType type) {}

bool isWebGamepadButtonEqual(const GamepadButton& lhs,
                             const GamepadButton& rhs) {}

bool isWebGamepadVectorEqual(const GamepadVector& lhs,
                             const GamepadVector& rhs) {}

bool isWebGamepadQuaternionEqual(const GamepadQuaternion& lhs,
                                 const GamepadQuaternion& rhs) {}

bool isWebGamepadPoseEqual(const GamepadPose& lhs, const GamepadPose& rhs) {}

bool isWebGamepadTouchEqual(const GamepadTouch& lhs, const GamepadTouch& rhs) {}

bool isWebGamepadEqual(const Gamepad& send, const Gamepad& echo) {}
}  // namespace

class GamepadStructTraitsTest : public testing::Test {};

TEST_F(GamepadStructTraitsTest, GamepadCommon) {}

TEST_F(GamepadStructTraitsTest, GamepadPose_HasOrientation) {}

TEST_F(GamepadStructTraitsTest, GamepadPose_HasPosition) {}

TEST_F(GamepadStructTraitsTest, GamepadPose_Null) {}
}  // namespace device