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

Side by Side Diff: chromeos/network/onc/onc_validator_unittest.cc

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/network_settings/onc_validator.h" 5 #include "chromeos/network/onc/onc_validator.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/chromeos/cros/onc_constants.h" 11 #include "chromeos/network/onc/onc_constants.h"
12 #include "chrome/browser/chromeos/network_settings/onc_signature.h" 12 #include "chromeos/network/onc/onc_signature.h"
13 #include "chrome/browser/chromeos/network_settings/onc_test_utils.h" 13 #include "chromeos/network/onc/onc_test_utils.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 namespace onc { 17 namespace onc {
18 namespace { 18 namespace {
19 19
20 // Create a strict validator that complains about every error. 20 // Create a strict validator that complains about every error.
21 scoped_ptr<Validator> CreateStrictValidator(bool managed_onc) { 21 scoped_ptr<Validator> CreateStrictValidator(bool managed_onc) {
22 return make_scoped_ptr(new Validator(true, true, true, managed_onc)); 22 return make_scoped_ptr(new Validator(true, true, true, managed_onc));
23 } 23 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 "network-repaired", 134 "network-repaired",
135 &kNetworkConfigurationSignature, false); 135 &kNetworkConfigurationSignature, false);
136 } 136 }
137 137
138 INSTANTIATE_TEST_CASE_P(ONCValidatorInvalidTest, 138 INSTANTIATE_TEST_CASE_P(ONCValidatorInvalidTest,
139 ONCValidatorInvalidTest, 139 ONCValidatorInvalidTest,
140 ::testing::Bool()); 140 ::testing::Bool());
141 141
142 } // namespace onc 142 } // namespace onc
143 } // namespace chromeos 143 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_validator.cc ('k') | chromeos/test/data/network/broken-encrypted-iterations.onc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698