| Index: extensions/renderer/native_extension_bindings_system_unittest.cc
|
| diff --git a/extensions/renderer/native_extension_bindings_system_unittest.cc b/extensions/renderer/native_extension_bindings_system_unittest.cc
|
| index fdc410d3737a756e09db774dc993797fab348d84..705f9cc6f6222e6ef3b08de7a14519920878fcbc 100644
|
| --- a/extensions/renderer/native_extension_bindings_system_unittest.cc
|
| +++ b/extensions/renderer/native_extension_bindings_system_unittest.cc
|
| @@ -148,10 +148,15 @@ TEST_F(NativeExtensionBindingsSystemUnittest, Basic) {
|
| ASSERT_FALSE(idle.IsEmpty());
|
| ASSERT_TRUE(idle->IsObject());
|
|
|
| - v8::Local<v8::Value> idle_query_state = GetPropertyFromObject(
|
| - v8::Local<v8::Object>::Cast(idle), context, "queryState");
|
| + v8::Local<v8::Object> idle_object = v8::Local<v8::Object>::Cast(idle);
|
| + v8::Local<v8::Value> idle_query_state =
|
| + GetPropertyFromObject(idle_object, context, "queryState");
|
| ASSERT_FALSE(idle_query_state.IsEmpty());
|
|
|
| + EXPECT_EQ(ReplaceSingleQuotes(
|
| + "{'ACTIVE':'active','IDLE':'idle','LOCKED':'locked'}"),
|
| + GetStringPropertyFromObject(idle_object, context, "IdleState"));
|
| +
|
| {
|
| // Try calling the function with an invalid invocation - an error should be
|
| // thrown.
|
|
|