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

Unified Diff: content/renderer/java/gin_java_bridge_value_converter_unittest.cc

Issue 1113783002: Use Local instead of Handle in src/content/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: content/renderer/java/gin_java_bridge_value_converter_unittest.cc
diff --git a/content/renderer/java/gin_java_bridge_value_converter_unittest.cc b/content/renderer/java/gin_java_bridge_value_converter_unittest.cc
index b0ef27a06d359436f6361ad2ab04aacd6e27f5eb..056aaebc6a2e5df5bffc2c1c59114f6b4cd9e08b 100644
--- a/content/renderer/java/gin_java_bridge_value_converter_unittest.cc
+++ b/content/renderer/java/gin_java_bridge_value_converter_unittest.cc
@@ -23,7 +23,7 @@ class GinJavaBridgeValueConverterTest : public testing::Test {
protected:
void SetUp() override {
v8::HandleScope handle_scope(isolate_);
- v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate_);
+ v8::Local<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate_);
context_.Reset(isolate_, v8::Context::New(isolate_, NULL, global));
}
@@ -44,7 +44,7 @@ TEST_F(GinJavaBridgeValueConverterTest, BasicValues) {
scoped_ptr<GinJavaBridgeValueConverter> converter(
new GinJavaBridgeValueConverter());
- v8::Handle<v8::Primitive> v8_undefined(v8::Undefined(isolate_));
+ v8::Local<v8::Primitive> v8_undefined(v8::Undefined(isolate_));
scoped_ptr<base::Value> undefined(
converter->FromV8Value(v8_undefined, context));
ASSERT_TRUE(undefined.get());
@@ -54,7 +54,7 @@ TEST_F(GinJavaBridgeValueConverterTest, BasicValues) {
ASSERT_TRUE(undefined_value.get());
EXPECT_TRUE(undefined_value->IsType(GinJavaBridgeValue::TYPE_UNDEFINED));
- v8::Handle<v8::Number> v8_infinity(
+ v8::Local<v8::Number> v8_infinity(
v8::Number::New(isolate_, std::numeric_limits<double>::infinity()));
scoped_ptr<base::Value> infinity(
converter->FromV8Value(v8_infinity, context));
@@ -80,7 +80,7 @@ TEST_F(GinJavaBridgeValueConverterTest, ArrayBuffer) {
scoped_ptr<GinJavaBridgeValueConverter> converter(
new GinJavaBridgeValueConverter());
- v8::Handle<v8::ArrayBuffer> v8_array_buffer(
+ v8::Local<v8::ArrayBuffer> v8_array_buffer(
v8::ArrayBuffer::New(isolate_, 0));
scoped_ptr<base::Value> undefined(
converter->FromV8Value(v8_array_buffer, context));
@@ -115,11 +115,11 @@ TEST_F(GinJavaBridgeValueConverterTest, TypedArrays) {
};
for (size_t i = 0; i < arraysize(array_types); i += 2) {
const char* typed_array_type = array_types[i + 1];
- v8::Handle<v8::Script> script(v8::Script::Compile(v8::String::NewFromUtf8(
+ v8::Local<v8::Script> script(v8::Script::Compile(v8::String::NewFromUtf8(
isolate_,
base::StringPrintf(
source_template, array_types[i], typed_array_type).c_str())));
- v8::Handle<v8::Value> v8_typed_array = script->Run();
+ v8::Local<v8::Value> v8_typed_array = script->Run();
scoped_ptr<base::Value> list_value(
converter->FromV8Value(v8_typed_array, context));
ASSERT_TRUE(list_value.get()) << typed_array_type;
« no previous file with comments | « content/renderer/java/gin_java_bridge_value_converter.cc ('k') | content/renderer/java/gin_java_function_invocation_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698