#include "remoting/host/remote_input_filter.h"
#include <stdint.h>
#include "remoting/proto/event.pb.h"
#include "remoting/protocol/input_event_tracker.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"
#include "ui/events/event.h"
_;
ExpectationSet;
InSequence;
namespace remoting {
InputEventTracker;
MockInputStub;
EqualsKeyEvent;
EqualsTouchEventTypeAndId;
namespace {
static protocol::MouseEvent MouseMoveEvent(int x, int y) { … }
static protocol::KeyEvent UsbKeyEvent(int usb_keycode, bool pressed) { … }
protocol::TouchEvent TouchStartEvent(uint32_t id) { … }
}
TEST(RemoteInputFilterTest, NoLocalActivity) { … }
TEST(RemoteInputFilterTest, MismatchedLocalActivity) { … }
TEST(RemoteInputFilterTest, TouchEventsAreNotCheckedForEcho) { … }
TEST(RemoteInputFilterTest, LocalEchoesOfRemoteActivity) { … }
TEST(RemoteInputFilterTest, LocalEchosAndLocalActivity) { … }
TEST(RemoteInputFilterTest, LocalKeyPressEventBlocksInput) { … }
TEST(RemoteInputFilterTest, LocalEchoOfKeyPressEventDoesNotBlockInput) { … }
TEST(RemoteInputFilterTest, LocalKeyPressEventMatchingPreviousEchoBlocksInput) { … }
TEST(RemoteInputFilterTest,
LocalDuplicateKeyPressEventBlocksInputIfEchoDisabled) { … }
TEST(RemoteInputFilterTest, LocalActivityReleasesAll) { … }
}