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

Side by Side Diff: cc/debug/frame_timing_tracker_unittest.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « cc/debug/devtools_instrumentation.h ('k') | cc/debug/frame_viewer_instrumentation.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <string> 5 #include <string>
6 6
7 #include "base/debug/trace_event_argument.h"
8 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "base/trace_event/trace_event_argument.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/debug/frame_timing_tracker.h" 10 #include "cc/debug/frame_timing_tracker.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace cc { 13 namespace cc {
14 namespace { 14 namespace {
15 15
16 static std::string ToString( 16 static std::string ToString(
17 scoped_ptr<FrameTimingTracker::CompositeTimingSet> timingset) { 17 scoped_ptr<FrameTimingTracker::CompositeTimingSet> timingset) {
18 scoped_refptr<base::debug::TracedValue> value = 18 scoped_refptr<base::debug::TracedValue> value =
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 "{\"frame_id\":2,\"timestamp\":100}," 116 "{\"frame_id\":2,\"timestamp\":100},"
117 "{\"frame_id\":1,\"timestamp\":200}],\"rect_id\":3}")); 117 "{\"frame_id\":1,\"timestamp\":200}],\"rect_id\":3}"));
118 EXPECT_NE(std::string::npos, 118 EXPECT_NE(std::string::npos,
119 result.find( 119 result.find(
120 "{\"events\":[" 120 "{\"events\":["
121 "{\"frame_id\":3,\"timestamp\":100}],\"rect_id\":4}")); 121 "{\"frame_id\":3,\"timestamp\":100}],\"rect_id\":4}"));
122 } 122 }
123 123
124 } // namespace 124 } // namespace
125 } // namespace cc 125 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/devtools_instrumentation.h ('k') | cc/debug/frame_viewer_instrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698