OLD | NEW |
(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 |
OLD | NEW |