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

Side by Side Diff: mojo/services/gfx/composition/cpp/frame_tracker_apptest.cc

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased Created 4 years, 6 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 | « mojo/services/flog/cpp/flog.h ('k') | mojo/services/gfx/images/cpp/image_pipe_apptest.cc » ('j') | 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 "mojo/services/gfx/composition/cpp/frame_tracker.h" 5 #include "mojo/services/gfx/composition/cpp/frame_tracker.h"
6 6
7 #include "mojo/public/cpp/application/application_impl.h"
8 #include "mojo/public/cpp/application/application_test_base.h" 7 #include "mojo/public/cpp/application/application_test_base.h"
9 #include "mojo/public/cpp/system/macros.h" 8 #include "mojo/public/cpp/system/macros.h"
10 9
11 namespace test { 10 namespace test {
12 11
13 class FrameTrackerTest : public mojo::test::ApplicationTestBase { 12 class FrameTrackerTest : public mojo::test::ApplicationTestBase {
14 public: 13 public:
15 FrameTrackerTest() {} 14 FrameTrackerTest() {}
16 ~FrameTrackerTest() override {} 15 ~FrameTrackerTest() override {}
17 16
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 EXPECT_EQ(10u, Update(22, 10u, 26, 27, 22)); 176 EXPECT_EQ(10u, Update(22, 10u, 26, 27, 22));
178 EXPECT_EQ(2u, frame_tracker_.frame_count()); 177 EXPECT_EQ(2u, frame_tracker_.frame_count());
179 EXPECT_EQ(22, frame_tracker_.frame_info().frame_time); 178 EXPECT_EQ(22, frame_tracker_.frame_info().frame_time);
180 EXPECT_EQ(10u, frame_tracker_.frame_info().frame_interval); 179 EXPECT_EQ(10u, frame_tracker_.frame_info().frame_interval);
181 EXPECT_EQ(26, frame_tracker_.frame_info().frame_deadline); 180 EXPECT_EQ(26, frame_tracker_.frame_info().frame_deadline);
182 EXPECT_EQ(28, frame_tracker_.frame_info().presentation_time); 181 EXPECT_EQ(28, frame_tracker_.frame_info().presentation_time);
183 } 182 }
184 183
185 } // namespace 184 } // namespace
186 } // namespace mojo 185 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/flog/cpp/flog.h ('k') | mojo/services/gfx/images/cpp/image_pipe_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698