diff options
Diffstat (limited to 'gin/converter_unittest.cc')
-rw-r--r-- | gin/converter_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gin/converter_unittest.cc b/gin/converter_unittest.cc index 791d7e6..f8011d6 100644 --- a/gin/converter_unittest.cc +++ b/gin/converter_unittest.cc @@ -55,7 +55,7 @@ TEST_F(ConverterTest, Bool) { { Undefined(instance_->isolate()).As<Value>(), false }, }; - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_data); ++i) { + for (size_t i = 0; i < arraysize(test_data); ++i) { bool result = false; EXPECT_TRUE(Converter<bool>::FromV8(instance_->isolate(), test_data[i].input, &result)); @@ -72,7 +72,7 @@ TEST_F(ConverterTest, Int32) { HandleScope handle_scope(instance_->isolate()); int test_data_to[] = {-1, 0, 1}; - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_data_to); ++i) { + for (size_t i = 0; i < arraysize(test_data_to); ++i) { EXPECT_TRUE(Converter<int32_t>::ToV8(instance_->isolate(), test_data_to[i]) ->StrictEquals( Integer::New(instance_->isolate(), test_data_to[i]))); @@ -98,7 +98,7 @@ TEST_F(ConverterTest, Int32) { { v8::Undefined(instance_->isolate()).As<Value>(), false, 0 }, }; - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_data_from); ++i) { + for (size_t i = 0; i < arraysize(test_data_from); ++i) { int32_t result = std::numeric_limits<int32_t>::min(); bool success = Converter<int32_t>::FromV8(instance_->isolate(), test_data_from[i].input, &result); |