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

Unified Diff: components/rappor/rappor_service_unittest.cc

Issue 1476633003: Move HashMetricName to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed unittest Created 5 years, 1 month 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/rappor/rappor_service.cc ('k') | components/rappor/sample.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/rappor_service_unittest.cc
diff --git a/components/rappor/rappor_service_unittest.cc b/components/rappor/rappor_service_unittest.cc
index 3b38c1af01a88e710cbdfc0609d116a710b75de6..93a981ae94a1da6cab3e77475a942c7b2afb1f79 100644
--- a/components/rappor/rappor_service_unittest.cc
+++ b/components/rappor/rappor_service_unittest.cc
@@ -5,8 +5,8 @@
#include "components/rappor/rappor_service.h"
#include "base/base64.h"
+#include "base/metrics/metrics_hashes.h"
#include "base/prefs/testing_pref_service.h"
-#include "components/metrics/metrics_hashes.h"
#include "components/rappor/byte_vector_utils.h"
#include "components/rappor/proto/rappor_metric.pb.h"
#include "components/rappor/rappor_parameters.h"
@@ -122,8 +122,8 @@ TEST(RapporServiceTest, RecordSample) {
sample->SetStringField("Url", "example.com");
sample->SetFlagsField("Flags1", 0xbcd, 12);
rappor_service.RecordSampleObj("ObjMetric", sample.Pass());
- uint64_t url_hash = metrics::HashMetricName("ObjMetric.Url");
- uint64_t flags_hash = metrics::HashMetricName("ObjMetric.Flags1");
+ uint64_t url_hash = base::HashMetricName("ObjMetric.Url");
+ uint64_t flags_hash = base::HashMetricName("ObjMetric.Flags1");
RapporReports reports;
rappor_service.GetReports(&reports);
EXPECT_EQ(2, reports.report_size());
« no previous file with comments | « components/rappor/rappor_service.cc ('k') | components/rappor/sample.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698