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

Side by Side Diff: components/ukm/test_ukm_service.cc

Issue 2719823003: Convert first contentful paint logging to the new UKM client API (Closed)
Patch Set: renames Created 3 years, 9 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 | « components/ukm/test_ukm_service.h ('k') | components/ukm/ukm_entry.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 2017 The Chromium Authors. All rights reserved. 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 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 "components/ukm/test_ukm_service.h" 5 #include "components/ukm/test_ukm_service.h"
6 6
7 namespace ukm { 7 namespace ukm {
8 8
9 UkmServiceTestingHarness::UkmServiceTestingHarness() { 9 UkmServiceTestingHarness::UkmServiceTestingHarness() {
10 UkmService::RegisterPrefs(test_prefs_.registry()); 10 UkmService::RegisterPrefs(test_prefs_.registry());
(...skipping 10 matching lines...) Expand all
21 EnableRecording(); 21 EnableRecording();
22 DisableReporting(); 22 DisableReporting();
23 } 23 }
24 24
25 TestUkmService::~TestUkmService() = default; 25 TestUkmService::~TestUkmService() = default;
26 26
27 const UkmSource* TestUkmService::GetSource(size_t source_num) const { 27 const UkmSource* TestUkmService::GetSource(size_t source_num) const {
28 return sources_for_testing()[source_num].get(); 28 return sources_for_testing()[source_num].get();
29 } 29 }
30 30
31 const UkmEntry* TestUkmService::GetEntry(size_t entry_num) const {
32 return entries_for_testing()[entry_num].get();
33 }
34
31 } // namespace ukm 35 } // namespace ukm
OLDNEW
« no previous file with comments | « components/ukm/test_ukm_service.h ('k') | components/ukm/ukm_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698