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

Unified 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: Added a unit test for the resolve function. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/onc/onc_test_utils.h ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_test_utils.cc
diff --git a/chromeos/network/onc/onc_test_utils.cc b/chromeos/network/onc/onc_test_utils.cc
index 3e854a3105fd5fc1d28136e05450d412d3e28ddf..82f4b7d49292d5845f1441d81b4069939638f3e3 100644
--- a/chromeos/network/onc/onc_test_utils.cc
+++ b/chromeos/network/onc/onc_test_utils.cc
@@ -64,18 +64,18 @@ scoped_ptr<base::DictionaryValue> ReadTestDictionary(
return make_scoped_ptr(dict);
}
-::testing::AssertionResult Equals(const base::DictionaryValue* expected,
- const base::DictionaryValue* actual) {
+::testing::AssertionResult Equals(const base::Value* expected,
+ const base::Value* actual) {
CHECK(expected != NULL);
if (actual == NULL)
- return ::testing::AssertionFailure() << "Actual dictionary pointer is NULL";
+ return ::testing::AssertionFailure() << "Actual value pointer is NULL";
if (expected->Equals(actual))
- return ::testing::AssertionSuccess() << "Dictionaries are equal";
+ return ::testing::AssertionSuccess() << "Values are equal";
- return ::testing::AssertionFailure() << "Dictionaries are unequal.\n"
- << "Expected dictionary:\n" << *expected
- << "Actual dictionary:\n" << *actual;
+ return ::testing::AssertionFailure() << "Values are unequal.\n"
+ << "Expected value:\n" << *expected
+ << "Actual value:\n" << *actual;
}
} // namespace test_utils
« no previous file with comments | « chromeos/network/onc/onc_test_utils.h ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698