Skip to content

Commit

Permalink
Address comments in the previous SystemInputInjectorMus patch.
Browse files Browse the repository at this point in the history
I only saw these comments after the patch landed.

Bug: 769308
Change-Id: Ia401bb2ec83a714e89a0cc16d8262a341f354e99
TBR: sky@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/831059
Reviewed-by: Elliot Glaysher <erg@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Elliot Glaysher <erg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524527}
  • Loading branch information
eglaysher authored and Commit Bot committed Dec 15, 2017
1 parent 999fa2e commit 40e2862
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/aura/mus/system_input_injector_mus_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ namespace aura {

class TestDispaterchWindowManagerClient : public aura::WindowManagerClient {
public:
TestDispaterchWindowManagerClient() {}
~TestDispaterchWindowManagerClient() override {}

const std::vector<std::unique_ptr<ui::Event>>& events() const {
return events_;
}
Expand Down Expand Up @@ -72,10 +75,15 @@ class TestDispaterchWindowManagerClient : public aura::WindowManagerClient {

private:
std::vector<std::unique_ptr<ui::Event>> events_;

DISALLOW_COPY_AND_ASSIGN(TestDispaterchWindowManagerClient);
};

class SystemInputInjectorMusTest : public test::AuraTestBase {
protected:
SystemInputInjectorMusTest() {}
~SystemInputInjectorMusTest() override {}

const std::vector<std::unique_ptr<ui::Event>>& events() const {
return window_manager_client_.events();
}
Expand All @@ -96,6 +104,8 @@ class SystemInputInjectorMusTest : public test::AuraTestBase {
private:
TestDispaterchWindowManagerClient window_manager_client_;
std::unique_ptr<SystemInputInjectorMus> input_injector_;

DISALLOW_COPY_AND_ASSIGN(SystemInputInjectorMusTest);
};

TEST_F(SystemInputInjectorMusTest, MouseMove) {
Expand Down

0 comments on commit 40e2862

Please sign in to comment.