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

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

Issue 16946002: Resolve certificate references in ONC by PEM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 7 years, 6 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 | 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 "chromeos/network/onc/onc_test_utils.h" 5 #include "chromeos/network/onc/onc_test_utils.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return ::testing::AssertionFailure() << "Actual dictionary pointer is NULL"; 71 return ::testing::AssertionFailure() << "Actual dictionary pointer is NULL";
72 72
73 if (expected->Equals(actual)) 73 if (expected->Equals(actual))
74 return ::testing::AssertionSuccess() << "Dictionaries are equal"; 74 return ::testing::AssertionSuccess() << "Dictionaries are equal";
75 75
76 return ::testing::AssertionFailure() << "Dictionaries are unequal.\n" 76 return ::testing::AssertionFailure() << "Dictionaries are unequal.\n"
77 << "Expected dictionary:\n" << *expected 77 << "Expected dictionary:\n" << *expected
78 << "Actual dictionary:\n" << *actual; 78 << "Actual dictionary:\n" << *actual;
79 } 79 }
80 80
81 std::string FakeFingerprintToPEM(const std::string& fingerprint) {
82 return "[fake PEM for " + fingerprint + "]";
83 }
84
81 } // namespace test_utils 85 } // namespace test_utils
82 } // namespace onc 86 } // namespace onc
83 } // namespace chromeos 87 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698