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

Side by Side Diff: chrome/renderer/page_load_metrics/fake_page_timing_sender.cc

Issue 2823523003: [Page Load Metrics] PageLoadMetrics Mojofication. (Closed)
Patch Set: Addressed comments, remove unnecessary RunUntilIdle, call OnTimingUpdated directly in unit tests Created 3 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/renderer/page_load_metrics/fake_page_timing_sender.h"
6
7 #include "base/run_loop.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace page_load_metrics {
11
12 FakePageTimingSender::FakePageTimingSender() {}
13
14 FakePageTimingSender::~FakePageTimingSender() {}
15
16 void FakePageTimingSender::SendTiming(const PageLoadTiming& timing,
17 const PageLoadMetadata& metadata) {
18 ASSERT_TRUE(page_load_metrics_ptr_);
19 page_load_metrics_ptr_->UpdateTiming(timing, metadata);
20 base::RunLoop().RunUntilIdle();
21 }
22
23 } // namespace page_load_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698