| 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 "gin/test/gtest.h" | 5 #include "gin/test/gtest.h" |
| 6 | 6 |
| 7 #include "gin/arguments.h" | 7 #include "gin/arguments.h" |
| 8 #include "gin/converter.h" | 8 #include "gin/converter.h" |
| 9 #include "gin/per_isolate_data.h" | 9 #include "gin/per_isolate_data.h" |
| 10 #include "gin/wrapper_info.h" | 10 #include "gin/public/wrapper_info.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 using v8::ObjectTemplate; | 13 using v8::ObjectTemplate; |
| 14 | 14 |
| 15 namespace gin { | 15 namespace gin { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 void ExpectTrue(const v8::FunctionCallbackInfo<v8::Value>& info) { | 19 void ExpectTrue(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 20 Arguments args(info); | 20 Arguments args(info); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 templ->Set(StringToSymbol(isolate, "expectFalse"), | 70 templ->Set(StringToSymbol(isolate, "expectFalse"), |
| 71 v8::FunctionTemplate::New(ExpectFalse)); | 71 v8::FunctionTemplate::New(ExpectFalse)); |
| 72 templ->Set(StringToSymbol(isolate, "expectEqual"), | 72 templ->Set(StringToSymbol(isolate, "expectEqual"), |
| 73 v8::FunctionTemplate::New(ExpectEqual)); | 73 v8::FunctionTemplate::New(ExpectEqual)); |
| 74 data->SetObjectTemplate(&g_wrapper_info, templ); | 74 data->SetObjectTemplate(&g_wrapper_info, templ); |
| 75 } | 75 } |
| 76 return templ; | 76 return templ; |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace gin | 79 } // namespace gin |
| OLD | NEW |