diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-03 20:12:03 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-03 20:12:03 +0000 |
commit | f65a2326ebb3f10c43931c750ee714d1d959cc19 (patch) | |
tree | 119958a70c12fe7a5f5cf9c7b313bd29fa9fc2d1 /content/renderer/v8_value_converter_impl_unittest.cc | |
parent | dd853ce8497beb3a9346172346771f377760620e (diff) | |
download | chromium_src-f65a2326ebb3f10c43931c750ee714d1d959cc19.zip chromium_src-f65a2326ebb3f10c43931c750ee714d1d959cc19.tar.gz chromium_src-f65a2326ebb3f10c43931c750ee714d1d959cc19.tar.bz2 |
Track v8 API changes.
R=jochen@chromium.org, dcarney@chromium.org
BUG=324225
Review URL: https://codereview.chromium.org/122073003
Patch from Sven Panne <svenpanne@chromium.org>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242916 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/v8_value_converter_impl_unittest.cc')
-rw-r--r-- | content/renderer/v8_value_converter_impl_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/content/renderer/v8_value_converter_impl_unittest.cc b/content/renderer/v8_value_converter_impl_unittest.cc index 9853e51..5252939 100644 --- a/content/renderer/v8_value_converter_impl_unittest.cc +++ b/content/renderer/v8_value_converter_impl_unittest.cc @@ -154,7 +154,7 @@ class V8ValueConverterImplTest : public testing::Test { EXPECT_FALSE(raw.get()); } - v8::Handle<v8::Object> object(v8::Object::New()); + v8::Handle<v8::Object> object(v8::Object::New(isolate_)); object->Set(v8::String::NewFromUtf8(isolate_, "test"), val); scoped_ptr<base::DictionaryValue> dictionary( static_cast<base::DictionaryValue*>( @@ -455,7 +455,7 @@ TEST_F(V8ValueConverterImplTest, RecursiveObjects) { V8ValueConverterImpl converter; - v8::Handle<v8::Object> object = v8::Object::New().As<v8::Object>(); + v8::Handle<v8::Object> object = v8::Object::New(isolate_).As<v8::Object>(); ASSERT_FALSE(object.IsEmpty()); object->Set(v8::String::NewFromUtf8(isolate_, "foo"), v8::String::NewFromUtf8(isolate_, "bar")); @@ -636,7 +636,7 @@ TEST_F(V8ValueConverterImplTest, DetectCycles) { // Now create a recursive object const std::string key("key"); - v8::Handle<v8::Object> recursive_object(v8::Object::New()); + v8::Handle<v8::Object> recursive_object(v8::Object::New(isolate_)); v8::TryCatch try_catch; recursive_object->Set( v8::String::NewFromUtf8( @@ -666,11 +666,11 @@ TEST_F(V8ValueConverterImplTest, MaxRecursionDepth) { int kDepth = 1000; const char kKey[] = "key"; - v8::Local<v8::Object> deep_object = v8::Object::New(); + v8::Local<v8::Object> deep_object = v8::Object::New(isolate_); v8::Local<v8::Object> leaf = deep_object; for (int i = 0; i < kDepth; ++i) { - v8::Local<v8::Object> new_object = v8::Object::New(); + v8::Local<v8::Object> new_object = v8::Object::New(isolate_); leaf->Set(v8::String::NewFromUtf8(isolate_, kKey), new_object); leaf = new_object; } |