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

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: Add new configs Created 5 years, 2 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 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 "testing/gtest/include/gtest/gtest.h"
8
9 namespace domain_reliability {
10
11 namespace {
12
13 TEST(DomainReliabilityGoogleConfigsTest, Enumerate) {
14 GoogleConfigs configs = GoogleConfigs::GetAllConfigs();
15 scoped_ptr<DomainReliabilityConfig> config;
16
17 while (configs.HasMoreConfigs()) {
18 config = configs.GetNextConfig();
19 EXPECT_TRUE(config);
20 }
21
22 config = configs.GetNextConfig();
23 EXPECT_FALSE(config);
24
25 EXPECT_FALSE(configs.HasMoreConfigs());
26 }
27
28 TEST(DomainReliabilityGoogleConfigsTest, ConfigsAreValid) {
29 GoogleConfigs configs = GoogleConfigs::GetAllConfigs();
30 while (configs.HasMoreConfigs())
31 EXPECT_TRUE(configs.GetNextConfig()->IsValid());
32 }
33
34 } // namespace
35
36 } // namespace domain_reliability
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698