OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/macros.h" |
6 #include "gin/arguments.h" | 7 #include "gin/arguments.h" |
7 #include "gin/handle.h" | 8 #include "gin/handle.h" |
8 #include "gin/object_template_builder.h" | 9 #include "gin/object_template_builder.h" |
9 #include "gin/per_isolate_data.h" | 10 #include "gin/per_isolate_data.h" |
10 #include "gin/public/isolate_holder.h" | 11 #include "gin/public/isolate_holder.h" |
11 #include "gin/test/v8_test.h" | 12 #include "gin/test/v8_test.h" |
12 #include "gin/try_catch.h" | 13 #include "gin/try_catch.h" |
13 #include "gin/wrappable.h" | 14 #include "gin/wrappable.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 v8::Local<v8::Function> func; | 200 v8::Local<v8::Function> func; |
200 EXPECT_TRUE(ConvertFromV8(isolate, val, &func)); | 201 EXPECT_TRUE(ConvertFromV8(isolate, val, &func)); |
201 v8::Local<v8::Value> argv[] = { | 202 v8::Local<v8::Value> argv[] = { |
202 ConvertToV8(isolate, object.get()) | 203 ConvertToV8(isolate, object.get()) |
203 }; | 204 }; |
204 func->Call(v8::Undefined(isolate), 1, argv); | 205 func->Call(v8::Undefined(isolate), 1, argv); |
205 EXPECT_TRUE(try_catch.HasCaught()); | 206 EXPECT_TRUE(try_catch.HasCaught()); |
206 } | 207 } |
207 | 208 |
208 } // namespace gin | 209 } // namespace gin |
OLD | NEW |