chromium/remoting/client/input/key_event_mapper_unittest.cc

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

#include "remoting/client/input/key_event_mapper.h"

#include <stdint.h>

#include "base/functional/bind.h"
#include "remoting/proto/event.pb.h"
#include "remoting/protocol/protocol_mock_objects.h"
#include "remoting/protocol/test_event_matchers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
ExpectationSet;
InSequence;

namespace remoting {

InputStub;
KeyEvent;
MockInputStub;
EqualsKeyEventWithCapsLock;

static KeyEvent NewUsbEvent(uint32_t usb_keycode,
                            bool pressed,
                            uint32_t lock_states) {}

static void PressAndReleaseUsb(InputStub* input_stub, uint32_t usb_keycode) {}

static void InjectTestSequence(InputStub* input_stub) {}

// Verify that keys are passed through the KeyEventMapper by default.
TEST(KeyEventMapperTest, NoMappingOrTrapping) {}

// Verify that USB keys are remapped at most once.
TEST(KeyEventMapperTest, RemapKeys) {}

static void HandleTrappedKey(MockInputStub* stub, const KeyEvent& event) {}

// Verify that trapped and mapped USB keys are trapped but not remapped.
TEST(KeyEventMapperTest, TrapKeys) {}

}  // namespace remoting