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

Unified Diff: components/ukm/ukm_service_unittest.cc

Issue 2567263003: Basic UkmService implementation (Closed)
Patch Set: RegisterPrefs Created 3 years, 11 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
Index: components/ukm/ukm_service_unittest.cc
diff --git a/components/ukm/ukm_service_unittest.cc b/components/ukm/ukm_service_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b81de9b9301179da7a3a7a53d3a036ca7cbc33f9
--- /dev/null
+++ b/components/ukm/ukm_service_unittest.cc
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/ukm/ukm_service.h"
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include <memory>
+#include <utility>
Alexei Svitkine (slow) 2017/01/10 17:37:19 I don't think all these includes should be needed
Steven Holte 2017/01/10 22:52:45 Done.
+
+#include "components/metrics/test_metrics_service_client.h"
+#include "components/prefs/testing_pref_service.h"
+#include "components/ukm/ukm_pref_names.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace ukm {
+
+TEST(UkmServiceTest, Construct) {
+ TestingPrefServiceSimple test_prefs;
+ metrics::TestMetricsServiceClient test_client;
+ UkmService service(&test_prefs, &test_client);
+}
+
+} // namespace ukm

Powered by Google App Engine
This is Rietveld 408576698