OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/renderer_host/render_widget_host_view_mac.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h" |
6 | 6 |
7 #include <Cocoa/Cocoa.h> | 7 #include <Cocoa/Cocoa.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <tuple> | 10 #include <tuple> |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "content/test/test_render_view_host.h" | 35 #include "content/test/test_render_view_host.h" |
36 #include "gpu/ipc/common/gpu_messages.h" | 36 #include "gpu/ipc/common/gpu_messages.h" |
37 #include "gpu/ipc/service/image_transport_surface.h" | 37 #include "gpu/ipc/service/image_transport_surface.h" |
38 #include "testing/gmock/include/gmock/gmock.h" | 38 #include "testing/gmock/include/gmock/gmock.h" |
39 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
40 #include "testing/gtest_mac.h" | 40 #include "testing/gtest_mac.h" |
41 #import "third_party/ocmock/OCMock/OCMock.h" | 41 #import "third_party/ocmock/OCMock/OCMock.h" |
42 #import "third_party/ocmock/ocmock_extensions.h" | 42 #import "third_party/ocmock/ocmock_extensions.h" |
43 #include "ui/events/base_event_utils.h" | 43 #include "ui/events/base_event_utils.h" |
44 #include "ui/events/blink/web_input_event_traits.h" | 44 #include "ui/events/blink/web_input_event_traits.h" |
45 #include "ui/events/latency_info.h" | |
46 #include "ui/events/test/cocoa_test_event_utils.h" | 45 #include "ui/events/test/cocoa_test_event_utils.h" |
47 #import "ui/gfx/test/ui_cocoa_test_helper.h" | 46 #import "ui/gfx/test/ui_cocoa_test_helper.h" |
| 47 #include "ui/latency/latency_info.h" |
48 | 48 |
49 // Helper class with methods used to mock -[NSEvent phase], used by | 49 // Helper class with methods used to mock -[NSEvent phase], used by |
50 // |MockScrollWheelEventWithPhase()|. | 50 // |MockScrollWheelEventWithPhase()|. |
51 @interface MockPhaseMethods : NSObject { | 51 @interface MockPhaseMethods : NSObject { |
52 } | 52 } |
53 | 53 |
54 - (NSEventPhase)phaseBegan; | 54 - (NSEventPhase)phaseBegan; |
55 - (NSEventPhase)phaseChanged; | 55 - (NSEventPhase)phaseChanged; |
56 - (NSEventPhase)phaseEnded; | 56 - (NSEventPhase)phaseEnded; |
57 @end | 57 @end |
(...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1785 // Verify that this IPC is asking for no monitoring or immediate updates. | 1785 // Verify that this IPC is asking for no monitoring or immediate updates. |
1786 InputMsg_RequestCompositionUpdates::Read(composition_request_msg_for_child, | 1786 InputMsg_RequestCompositionUpdates::Read(composition_request_msg_for_child, |
1787 &child_msg_params); | 1787 &child_msg_params); |
1788 is_child_msg_for_immediate_request = std::get<0>(child_msg_params); | 1788 is_child_msg_for_immediate_request = std::get<0>(child_msg_params); |
1789 is_child_msg_for_monitor_request = std::get<1>(child_msg_params); | 1789 is_child_msg_for_monitor_request = std::get<1>(child_msg_params); |
1790 EXPECT_FALSE(is_child_msg_for_immediate_request); | 1790 EXPECT_FALSE(is_child_msg_for_immediate_request); |
1791 EXPECT_FALSE(is_child_msg_for_monitor_request); | 1791 EXPECT_FALSE(is_child_msg_for_monitor_request); |
1792 } | 1792 } |
1793 | 1793 |
1794 } // namespace content | 1794 } // namespace content |
OLD | NEW |