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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "mojo/public/cpp/bindings/binding_set.h" | 6 #include "mojo/public/cpp/bindings/binding_set.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "ui/events/mojo/latency_info_struct_traits.h" | 8 #include "ui/latency/mojo/latency_info_struct_traits.h" |
9 #include "ui/events/mojo/traits_test_service.mojom.h" | 9 #include "ui/latency/mojo/traits_test_service.mojom.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 class StructTraitsTest : public testing::Test, public mojom::TraitsTestService { | 15 class StructTraitsTest : public testing::Test, public mojom::TraitsTestService { |
16 public: | 16 public: |
17 StructTraitsTest() {} | 17 StructTraitsTest() {} |
18 | 18 |
19 protected: | 19 protected: |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 EXPECT_TRUE(output.FindLatency(INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, 1234, | 113 EXPECT_TRUE(output.FindLatency(INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, 1234, |
114 &rwh_comp)); | 114 &rwh_comp)); |
115 EXPECT_EQ(100, rwh_comp.sequence_number); | 115 EXPECT_EQ(100, rwh_comp.sequence_number); |
116 EXPECT_EQ(1u, rwh_comp.event_count); | 116 EXPECT_EQ(1u, rwh_comp.event_count); |
117 | 117 |
118 EXPECT_TRUE(output.FindLatency( | 118 EXPECT_TRUE(output.FindLatency( |
119 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, 1234, nullptr)); | 119 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, 1234, nullptr)); |
120 } | 120 } |
121 | 121 |
122 } // namespace ui | 122 } // namespace ui |
OLD | NEW |