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

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

Issue 16946002: Resolve certificate references in ONC by PEM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed automation part. 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 #ifndef CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_ 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_
6 #define CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_ 6 #define CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 // DictionaryValue. CHECKs if any error occurs. 25 // DictionaryValue. CHECKs if any error occurs.
26 scoped_ptr<base::DictionaryValue> ReadTestDictionary( 26 scoped_ptr<base::DictionaryValue> ReadTestDictionary(
27 const std::string& filename); 27 const std::string& filename);
28 28
29 // Checks that the pointer |actual| is not NULL but points to a dictionary that 29 // Checks that the pointer |actual| is not NULL but points to a dictionary that
30 // equals |expected| (using Value::Equals). The intended use case is: 30 // equals |expected| (using Value::Equals). The intended use case is:
31 // EXPECT_TRUE(test_utils::Equals(expected, actual)); 31 // EXPECT_TRUE(test_utils::Equals(expected, actual));
32 ::testing::AssertionResult Equals(const base::DictionaryValue* expected, 32 ::testing::AssertionResult Equals(const base::DictionaryValue* expected,
33 const base::DictionaryValue* actual); 33 const base::DictionaryValue* actual);
34 34
35 std::string FakeFingerprintToPEM(const std::string& fingerprint);
36
35 } // namespace test_utils 37 } // namespace test_utils
36 } // namespace onc 38 } // namespace onc
37 } // namespace chromeos 39 } // namespace chromeos
38 40
39 #endif // CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_ 41 #endif // CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698