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

Side by Side Diff: chrome/common/page_load_metrics/test/weak_mock_timer.cc

Issue 2901383002: Buffer cross frame paint timing updates. (Closed)
Patch Set: address comment Created 3 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
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/common/page_load_metrics/test/weak_mock_timer.h"
6
7 namespace page_load_metrics {
8 namespace test {
9
10 WeakMockTimer::WeakMockTimer()
11 : MockTimer(false /* retain_user_task */, false /* is_repeating */) {}
12
13 WeakMockTimerProvider::WeakMockTimerProvider() {}
14 WeakMockTimerProvider::~WeakMockTimerProvider() {}
15
16 base::MockTimer* WeakMockTimerProvider::GetMockTimer() const {
17 return timer_.get();
18 }
19
20 void WeakMockTimerProvider::SetMockTimer(base::WeakPtr<WeakMockTimer> timer) {
21 timer_ = timer;
22 }
23
24 } // namespace test
25 } // namespace page_load_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698