Chromium Code Reviews| 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 |