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

Side by Side Diff: ui/latency/mojo/struct_traits_unittest.cc

Issue 2802923002: Re-adding and fixing StructTraitsTest for events and latency. (Closed)
Patch Set: Removing non-mojo :run_all_unittests Created 3 years, 8 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
« no previous file with comments | « ui/latency/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « ui/latency/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698