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

Unified Diff: chrome/common/json_schema_validator_unittest_base.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review Created 9 years, 4 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/common/json_schema_validator.cc ('k') | chrome/common/json_value_serializer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/json_schema_validator_unittest_base.cc
diff --git a/chrome/common/json_schema_validator_unittest_base.cc b/chrome/common/json_schema_validator_unittest_base.cc
index 5a9112304ffda419f984bb3612a1100709fff461..3c7d753d22621fdd7342aab63e577262d42e35ec 100644
--- a/chrome/common/json_schema_validator_unittest_base.cc
+++ b/chrome/common/json_schema_validator_unittest_base.cc
@@ -40,7 +40,7 @@ Value* LoadValue(const std::string& filename, base::Value::Type type) {
scoped_ptr<Value> result(LoadValue(filename));
if (!result.get())
return NULL;
- if (!result->IsType(type)) {
+ if (result->GetType() != type) {
ADD_FAILURE() << "Expected type " << type << ", got: " << result->GetType();
return NULL;
}
« no previous file with comments | « chrome/common/json_schema_validator.cc ('k') | chrome/common/json_value_serializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698