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

Unified Diff: chrome/browser/chromeos/cros/network_library_unittest.cc

Issue 11970012: Add a check for server and CA certificates in device policies to the ONC validator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing unit tests. Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/network_library_impl_base.cc ('k') | chromeos/docs/onc_spec.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_library_unittest.cc
diff --git a/chrome/browser/chromeos/cros/network_library_unittest.cc b/chrome/browser/chromeos/cros/network_library_unittest.cc
index 091a341828125efb29aaf8d7ac45c7e607e62574..05a036c0ff1d21b7bc6a012dc240097845aaab17 100644
--- a/chrome/browser/chromeos/cros/network_library_unittest.cc
+++ b/chrome/browser/chromeos/cros/network_library_unittest.cc
@@ -324,8 +324,7 @@ TEST_F(NetworkLibraryStubTest, NetworkConnectWifiWithCertPattern) {
onc_root->GetListWithoutPathExpansion(onc::toplevel_config::kCertificates,
&certificates);
- onc::CertificateImporter importer(onc::ONC_SOURCE_USER_IMPORT,
- false /* don't allow webtrust */);
+ onc::CertificateImporter importer(true /* allow webtrust */);
ASSERT_EQ(onc::CertificateImporter::IMPORT_OK,
importer.ParseAndStoreCertificates(*certificates));
@@ -354,8 +353,7 @@ TEST_F(NetworkLibraryStubTest, NetworkConnectVPNWithCertPattern) {
onc_root->GetListWithoutPathExpansion(onc::toplevel_config::kCertificates,
&certificates);
- onc::CertificateImporter importer(onc::ONC_SOURCE_USER_IMPORT,
- false /* don't allow webtrust */);
+ onc::CertificateImporter importer(true /* allow webtrust */);
ASSERT_EQ(onc::CertificateImporter::IMPORT_OK,
importer.ParseAndStoreCertificates(*certificates));
« no previous file with comments | « chrome/browser/chromeos/cros/network_library_impl_base.cc ('k') | chromeos/docs/onc_spec.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698