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

Unified Diff: components/metrics/profiler/profiler_metrics_provider_unittest.cc

Issue 953403002: Constructor without callback added to ProfilerMetricsProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Constructor of provider is moved and comment added Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/metrics/profiler/profiler_metrics_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/profiler/profiler_metrics_provider_unittest.cc
diff --git a/components/metrics/profiler/profiler_metrics_provider_unittest.cc b/components/metrics/profiler/profiler_metrics_provider_unittest.cc
index 93105b5c784d235017e972da1632407c1e58e1ae..f3a3e244caf8f42a42650bbee0d066b754dfffe3 100644
--- a/components/metrics/profiler/profiler_metrics_provider_unittest.cc
+++ b/components/metrics/profiler/profiler_metrics_provider_unittest.cc
@@ -15,17 +15,13 @@ using tracked_objects::TaskSnapshot;
namespace metrics {
- void MockIsCellular(bool* is_cellular_out) {
- *is_cellular_out = false;
- }
-
TEST(ProfilerMetricsProviderTest, RecordData) {
// WARNING: If you broke the below check, you've modified how
// HashMetricName works. Please also modify all server-side code that
// relies on the existing way of hashing.
EXPECT_EQ(GG_UINT64_C(1518842999910132863), HashMetricName("birth_thread*"));
- ProfilerMetricsProvider profiler_metrics_provider(base::Bind(MockIsCellular));
+ ProfilerMetricsProvider profiler_metrics_provider;
{
// Add data from the browser process.
« no previous file with comments | « components/metrics/profiler/profiler_metrics_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698