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 #ifndef GIN_TEST_GTEST_H_ | 5 #ifndef GIN_TEST_GTEST_H_ |
6 #define GIN_TEST_GTEST_H_ | 6 #define GIN_TEST_GTEST_H_ |
7 | 7 |
8 #include "v8/include/v8.h" | 8 #include "v8/include/v8.h" |
9 | 9 |
10 namespace gin { | 10 namespace gin { |
11 | 11 |
12 // This module provides bindings to gtest. Most tests should use an idiomatic | 12 // This module provides bindings to gtest. Most tests should use an idiomatic |
13 // JavaScript testing API, but this module is available for tests that need a | 13 // JavaScript testing API, but this module is available for tests that need a |
14 // low-level integration with gtest. | 14 // low-level integration with gtest. |
15 class GTest { | 15 class GTest { |
16 public: | 16 public: |
17 static const char kModuleName[]; | 17 static const char kModuleName[]; |
18 static v8::Local<v8::ObjectTemplate> GetTemplate(v8::Isolate* isolate); | 18 static v8::Local<v8::Value> GetModule(v8::Isolate* isolate); |
19 }; | 19 }; |
20 | 20 |
21 } // namespace gin | 21 } // namespace gin |
22 | 22 |
23 #endif // GIN_TEST_GTEST_H_ | 23 #endif // GIN_TEST_GTEST_H_ |
OLD | NEW |