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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/domain_reliability/google_configs.h"
6
7 #include "base/stl_util.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace domain_reliability {
11
12 namespace {
13
14 typedef std::vector<DomainReliabilityConfig*> ConfigPointerVector;
15
16 TEST(DomainReliabilityGoogleConfigsTest, Enumerate) {
17 ConfigPointerVector configs;
18 STLElementDeleter<ConfigPointerVector> configs_deleter(&configs);
19
20 GetAllGoogleConfigs(&configs);
21 }
22
23 TEST(DomainReliabilityGoogleConfigsTest, ConfigsAreValid) {
24 ConfigPointerVector configs;
25 STLElementDeleter<ConfigPointerVector> configs_deleter(&configs);
26
27 GetAllGoogleConfigs(&configs);
28 for (auto config : configs)
29 EXPECT_TRUE(config->IsValid());
30 }
31
32 } // namespace
33
34 } // namespace domain_reliability
OLDNEW
« 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