Commit c93bdaaf authored by franzih's avatar franzih Committed by Commit bot

[test] Move stray variables into namespaces.

BUG=

Review-Url: https://codereview.chromium.org/2496133003
Cr-Commit-Position: refs/heads/master@{#41027}
parent b8a06da6
...@@ -380,11 +380,8 @@ void InterceptorHasOwnPropertyGetterGC( ...@@ -380,11 +380,8 @@ void InterceptorHasOwnPropertyGetterGC(
CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask); CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask);
} }
} // namespace
int query_counter_int = 0; int query_counter_int = 0;
namespace {
void QueryCallback(Local<Name> property, void QueryCallback(Local<Name> property,
const v8::PropertyCallbackInfo<v8::Integer>& info) { const v8::PropertyCallbackInfo<v8::Integer>& info) {
query_counter_int++; query_counter_int++;
...@@ -479,12 +476,13 @@ THREADED_TEST(QueryInterceptor) { ...@@ -479,12 +476,13 @@ THREADED_TEST(QueryInterceptor) {
CHECK_EQ(query_counter_int, 8); CHECK_EQ(query_counter_int, 8);
} }
namespace {
bool get_was_called = false; bool get_was_called = false;
bool set_was_called = false; bool set_was_called = false;
int set_was_called_counter = 0; int set_was_called_counter = 0;
namespace {
void GetterCallback(Local<Name> property, void GetterCallback(Local<Name> property,
const v8::PropertyCallbackInfo<v8::Value>& info) { const v8::PropertyCallbackInfo<v8::Value>& info) {
get_was_called = true; get_was_called = true;
...@@ -610,11 +608,12 @@ THREADED_TEST(SetterCallbackFunctionDeclarationInterceptorThrow) { ...@@ -610,11 +608,12 @@ THREADED_TEST(SetterCallbackFunctionDeclarationInterceptorThrow) {
CHECK_EQ(set_was_called, false); CHECK_EQ(set_was_called, false);
} }
bool get_was_called_in_order = false;
bool define_was_called_in_order = false;
namespace { namespace {
bool get_was_called_in_order = false;
bool define_was_called_in_order = false;
void GetterCallbackOrder(Local<Name> property, void GetterCallbackOrder(Local<Name> property,
const v8::PropertyCallbackInfo<v8::Value>& info) { const v8::PropertyCallbackInfo<v8::Value>& info) {
get_was_called_in_order = true; get_was_called_in_order = true;
...@@ -1972,8 +1971,9 @@ THREADED_TEST(PropertyDescriptorCallback) { ...@@ -1972,8 +1971,9 @@ THREADED_TEST(PropertyDescriptorCallback) {
} }
} }
namespace {
int echo_indexed_call_count = 0; int echo_indexed_call_count = 0;
} // namespace
static void EchoIndexedProperty( static void EchoIndexedProperty(
uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) { uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment