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

Unified Diff: components/domain_reliability/google_configs_unittest.cc

Issue 1180223006: Domain Reliability: Simplify configs and reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix memory leak in unittests 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/domain_reliability/google_configs.cc ('k') | components/domain_reliability/monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/google_configs_unittest.cc
diff --git a/components/domain_reliability/google_configs_unittest.cc b/components/domain_reliability/google_configs_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f7cf7c4d6310b54a6c2479ed860cc97ad3e3cafa
--- /dev/null
+++ b/components/domain_reliability/google_configs_unittest.cc
@@ -0,0 +1,34 @@
+// Copyright 2015 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/domain_reliability/google_configs.h"
+
+#include "base/stl_util.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace domain_reliability {
+
+namespace {
+
+typedef std::vector<DomainReliabilityConfig*> ConfigPointerVector;
+
+TEST(DomainReliabilityGoogleConfigsTest, Enumerate) {
+ ConfigPointerVector configs;
+ STLElementDeleter<ConfigPointerVector> configs_deleter(&configs);
+
+ GetAllGoogleConfigs(&configs);
+}
+
+TEST(DomainReliabilityGoogleConfigsTest, ConfigsAreValid) {
+ ConfigPointerVector configs;
+ STLElementDeleter<ConfigPointerVector> configs_deleter(&configs);
+
+ GetAllGoogleConfigs(&configs);
+ for (auto config : configs)
+ EXPECT_TRUE(config->IsValid());
+}
+
+} // namespace
+
+} // namespace domain_reliability
« no previous file with comments | « components/domain_reliability/google_configs.cc ('k') | components/domain_reliability/monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698