Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: content/renderer/mus/compositor_mus_connection_unittest.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/mus/compositor_mus_connection.h" 5 #include "content/renderer/mus/compositor_mus_connection.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/test/test_simple_task_runner.h" 11 #include "base/test/test_simple_task_runner.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "components/mus/public/cpp/tests/test_window.h"
14 #include "content/common/input/did_overscroll_params.h" 13 #include "content/common/input/did_overscroll_params.h"
15 #include "content/common/input/input_event_ack.h" 14 #include "content/common/input/input_event_ack.h"
16 #include "content/common/input/input_event_ack_state.h" 15 #include "content/common/input/input_event_ack_state.h"
17 #include "content/public/test/mock_render_thread.h" 16 #include "content/public/test/mock_render_thread.h"
18 #include "content/renderer/input/input_handler_manager.h" 17 #include "content/renderer/input/input_handler_manager.h"
19 #include "content/renderer/input/input_handler_manager_client.h" 18 #include "content/renderer/input/input_handler_manager_client.h"
20 #include "content/renderer/input/render_widget_input_handler.h" 19 #include "content/renderer/input/render_widget_input_handler.h"
21 #include "content/renderer/mus/render_widget_mus_connection.h" 20 #include "content/renderer/mus/render_widget_mus_connection.h"
22 #include "content/renderer/render_widget.h" 21 #include "content/renderer/render_widget.h"
23 #include "content/test/fake_compositor_dependencies.h" 22 #include "content/test/fake_compositor_dependencies.h"
24 #include "content/test/fake_renderer_scheduler.h" 23 #include "content/test/fake_renderer_scheduler.h"
25 #include "mojo/public/cpp/bindings/interface_request.h" 24 #include "mojo/public/cpp/bindings/interface_request.h"
25 #include "services/ui/public/cpp/tests/test_window.h"
26 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
27 #include "ui/events/event_utils.h" 27 #include "ui/events/event_utils.h"
28 #include "ui/events/mojo/event.mojom.h" 28 #include "ui/events/mojo/event.mojom.h"
29 #include "ui/events/mojo/event_constants.mojom.h" 29 #include "ui/events/mojo/event_constants.mojom.h"
30 #include "ui/events/mojo/keyboard_codes.mojom.h" 30 #include "ui/events/mojo/keyboard_codes.mojom.h"
31 31
32 using mus::mojom::EventResult; 32 using mus::mojom::EventResult;
33 33
34 namespace { 34 namespace {
35 35
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 EXPECT_FALSE(ack_callback.get()); 483 EXPECT_FALSE(ack_callback.get());
484 484
485 VerifyAndRunQueues(true, true); 485 VerifyAndRunQueues(true, true);
486 486
487 // The ack callback should have been called 487 // The ack callback should have been called
488 EXPECT_TRUE(test_callback->called()); 488 EXPECT_TRUE(test_callback->called());
489 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); 489 EXPECT_EQ(EventResult::HANDLED, test_callback->result());
490 } 490 }
491 491
492 } // namespace content 492 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/mus/compositor_mus_connection.h ('k') | content/renderer/mus/render_widget_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698