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

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

Issue 1780953003: Change the non-blocking event queue to the main thread event queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_regression_5
Patch Set: Fix android Created 4 years, 9 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 "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/test/test_simple_task_runner.h" 10 #include "base/test/test_simple_task_runner.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 TestInputHandlerManagerClient() {} 118 TestInputHandlerManagerClient() {}
119 ~TestInputHandlerManagerClient() override{}; 119 ~TestInputHandlerManagerClient() override{};
120 120
121 // content::InputHandlerManagerClient: 121 // content::InputHandlerManagerClient:
122 void SetBoundHandler(const Handler& handler) override {} 122 void SetBoundHandler(const Handler& handler) override {}
123 void DidAddInputHandler(int routing_id) override {} 123 void DidAddInputHandler(int routing_id) override {}
124 void DidRemoveInputHandler(int routing_id) override {} 124 void DidRemoveInputHandler(int routing_id) override {}
125 void DidOverscroll(int routing_id, 125 void DidOverscroll(int routing_id,
126 const content::DidOverscrollParams& params) override {} 126 const content::DidOverscrollParams& params) override {}
127 void DidStopFlinging(int routing_id) override {} 127 void DidStopFlinging(int routing_id) override {}
128 void NonBlockingInputEventHandled(int routing_id, 128 void NotifyInputEventHandled(int routing_id,
129 blink::WebInputEvent::Type type) override {} 129 blink::WebInputEvent::Type type) override {}
130 130
131 private: 131 private:
132 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); 132 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient);
133 }; 133 };
134 134
135 // Implementation of RenderWidget for testing, performs no initialization. 135 // Implementation of RenderWidget for testing, performs no initialization.
136 class TestRenderWidget : public content::RenderWidget { 136 class TestRenderWidget : public content::RenderWidget {
137 public: 137 public:
138 explicit TestRenderWidget(content::CompositorDependencies* compositor_deps) 138 explicit TestRenderWidget(content::CompositorDependencies* compositor_deps)
139 : content::RenderWidget(compositor_deps, 139 : content::RenderWidget(compositor_deps,
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 base::Bind(&::TestCallback::BoolCallback, test_callback))); 445 base::Bind(&::TestCallback::BoolCallback, test_callback)));
446 446
447 OnWindowInputEvent(&test_window, event, &ack_callback); 447 OnWindowInputEvent(&test_window, event, &ack_callback);
448 EXPECT_TRUE(ack_callback.get()); 448 EXPECT_TRUE(ack_callback.get());
449 449
450 VerifyAndRunQueues(true, false); 450 VerifyAndRunQueues(true, false);
451 EXPECT_FALSE(test_callback->called()); 451 EXPECT_FALSE(test_callback->called());
452 } 452 }
453 453
454 } // namespace content 454 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/mus/compositor_mus_connection.cc ('k') | content/renderer/mus/render_widget_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698