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