Index: tools/json_schema_compiler/test/simple_api_unittest.cc |
diff --git a/tools/json_schema_compiler/test/simple_api_unittest.cc b/tools/json_schema_compiler/test/simple_api_unittest.cc |
index 54c773f2174c51f8a780ec1e4668796d49f86c72..ef6f9e20518dbf9448ff517a486c149563713600 100644 |
--- a/tools/json_schema_compiler/test/simple_api_unittest.cc |
+++ b/tools/json_schema_compiler/test/simple_api_unittest.cc |
@@ -5,6 +5,7 @@ |
#include "tools/json_schema_compiler/test/simple_api.h" |
#include "base/memory/ptr_util.h" |
+#include "base/values.h" |
#include "testing/gtest/include/gtest/gtest.h" |
using namespace test::api::simple_api; |
@@ -13,10 +14,10 @@ namespace { |
static std::unique_ptr<base::DictionaryValue> CreateTestTypeDictionary() { |
std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); |
- value->SetWithoutPathExpansion("number", new base::Value(1.1)); |
- value->SetWithoutPathExpansion("integer", new base::Value(4)); |
- value->SetWithoutPathExpansion("string", new base::Value("bling")); |
- value->SetWithoutPathExpansion("boolean", new base::Value(true)); |
+ value->SetDoubleWithoutPathExpansion("number", 1.1); |
+ value->SetIntegerWithoutPathExpansion("integer", 4); |
+ value->SetStringWithoutPathExpansion("string", "bling"); |
+ value->SetBooleanWithoutPathExpansion("boolean", true); |
return value; |
} |