Chromium Code Reviews| 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..a0e9e305ca2b32cf530be7e7a7f29564624b8e75 |
| --- /dev/null |
| +++ b/components/domain_reliability/google_configs_unittest.cc |
| @@ -0,0 +1,28 @@ |
| +// 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 "testing/gtest/include/gtest/gtest.h" |
| + |
| +namespace domain_reliability { |
| + |
| +namespace { |
| + |
| +TEST(DomainReliabilityGoogleConfigsTest, Enumerate) { |
| + std::vector<DomainReliabilityConfig*> configs; |
| + GetAllGoogleConfigs(&configs); |
|
Randy Smith (Not in Mondays)
2015/11/03 21:48:12
What are you testing? (Even if there is something
Deprecated (see juliatuttle)
2015/11/06 17:22:29
I do that in tests -- most of my tests have a simp
Randy Smith (Not in Mondays)
2015/11/09 21:23:24
In a unittest I don't really care; it's fine.
|
| +} |
| + |
| +TEST(DomainReliabilityGoogleConfigsTest, ConfigsAreValid) { |
| + std::vector<DomainReliabilityConfig*> configs; |
| + GetAllGoogleConfigs(&configs); |
| + |
| + for (auto config : configs) |
| + EXPECT_TRUE(config->IsValid()); |
| +} |
| + |
| +} // namespace |
| + |
| +} // namespace domain_reliability |