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

Unified Diff: chromecast/browser/metrics/cast_metrics_service_client_unittest.cc

Issue 739663003: Removes the test to create CastMetricsServiceClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | chromecast/chromecast.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/metrics/cast_metrics_service_client_unittest.cc
diff --git a/chromecast/browser/metrics/cast_metrics_service_client_unittest.cc b/chromecast/browser/metrics/cast_metrics_service_client_unittest.cc
deleted file mode 100644
index 31537864d81cc5711e592a9b8d25e52889e57d80..0000000000000000000000000000000000000000
--- a/chromecast/browser/metrics/cast_metrics_service_client_unittest.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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 "chromecast/browser/metrics/cast_metrics_service_client.h"
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
-#include "base/prefs/testing_pref_service.h"
-#include "components/metrics/metrics_service.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace chromecast {
-
-class CastMetricsTest : public testing::Test {
- public:
- CastMetricsTest() {}
- virtual ~CastMetricsTest() {}
-
- protected:
- virtual void SetUp() override {
- message_loop_.reset(new base::MessageLoop());
- prefs_.reset(new TestingPrefServiceSimple());
- ::metrics::MetricsService::RegisterPrefs(prefs_->registry());
- }
-
- base::TaskRunner* task_runner() {
- return message_loop_->task_runner().get();
- }
- TestingPrefServiceSimple* prefs() { return prefs_.get(); }
-
- private:
- scoped_ptr<base::MessageLoop> message_loop_;
- scoped_ptr<TestingPrefServiceSimple> prefs_;
-
- DISALLOW_COPY_AND_ASSIGN(CastMetricsTest);
-};
-
-TEST_F(CastMetricsTest, CreateMetricsServiceClient) {
- // Create and expect this to not crash.
- metrics::CastMetricsServiceClient::Create(task_runner(), prefs(), NULL);
-}
-
-} // namespace chromecast
« no previous file with comments | « no previous file | chromecast/chromecast.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698