| OLD | NEW |
| 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" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void ProcessRafAlignedInput(int routing_id) override {} | 144 void ProcessRafAlignedInput(int routing_id) override {} |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); | 147 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 // Implementation of RenderWidget for testing, performs no initialization. | 150 // Implementation of RenderWidget for testing, performs no initialization. |
| 151 class TestRenderWidget : public RenderWidget { | 151 class TestRenderWidget : public RenderWidget { |
| 152 public: | 152 public: |
| 153 explicit TestRenderWidget(CompositorDependencies* compositor_deps) | 153 explicit TestRenderWidget(CompositorDependencies* compositor_deps) |
| 154 : RenderWidget(compositor_deps, | 154 : RenderWidget(1, |
| 155 compositor_deps, |
| 155 blink::WebPopupTypeNone, | 156 blink::WebPopupTypeNone, |
| 156 ScreenInfo(), | 157 ScreenInfo(), |
| 157 true, | 158 true, |
| 158 false, | 159 false, |
| 159 false) {} | 160 false) {} |
| 160 | 161 |
| 161 protected: | 162 protected: |
| 162 ~TestRenderWidget() override {} | 163 ~TestRenderWidget() override {} |
| 163 | 164 |
| 164 private: | 165 private: |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 EXPECT_FALSE(ack_callback.get()); | 493 EXPECT_FALSE(ack_callback.get()); |
| 493 | 494 |
| 494 VerifyAndRunQueues(true, true); | 495 VerifyAndRunQueues(true, true); |
| 495 | 496 |
| 496 // The ack callback should have been called | 497 // The ack callback should have been called |
| 497 EXPECT_TRUE(test_callback->called()); | 498 EXPECT_TRUE(test_callback->called()); |
| 498 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); | 499 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); |
| 499 } | 500 } |
| 500 | 501 |
| 501 } // namespace content | 502 } // namespace content |
| OLD | NEW |