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

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: factor WeakMockTimer into a common location. 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 (c) 2017 The Chromium Authors. All rights reserved.
Charlie Harrison 2017/05/30 14:49:08 no (c)
Bryan McQuade 2017/05/30 15:30:23 done
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
9 WeakMockTimer::WeakMockTimer()
10 : MockTimer(false /* retain_user_task */, false /* is_repeating */) {}
11
12 WeakMockTimerProvider::WeakMockTimerProvider() {}
13 WeakMockTimerProvider::~WeakMockTimerProvider() {}
14
15 base::MockTimer* WeakMockTimerProvider::GetMockTimer() const {
16 return timer_.get();
17 }
18
19 void WeakMockTimerProvider::SetMockTimer(base::WeakPtr<WeakMockTimer> timer) {
20 timer_ = timer;
21 }
22
23 } // namespace page_load_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698