OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ | 5 #ifndef CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ |
6 #define CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ | 6 #define CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ |
7 | 7 |
8 #include "chrome/renderer/extensions/chrome_v8_context.h" | 8 #include "chrome/renderer/extensions/chrome_v8_context.h" |
9 #include "chrome/renderer/extensions/module_system.h" | 9 #include "extensions/renderer/module_system.h" |
10 #include "extensions/renderer/scoped_persistent.h" | 10 #include "extensions/renderer/scoped_persistent.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "v8/include/v8.h" | 12 #include "v8/include/v8.h" |
13 | 13 |
14 // Test fixture for testing JS that makes use of the module system. | 14 // Test fixture for testing JS that makes use of the module system. |
15 // | 15 // |
16 // Typically tests will look like: | 16 // Typically tests will look like: |
17 // | 17 // |
18 // TEST_F(MyModuleSystemTest, TestStuff) { | 18 // TEST_F(MyModuleSystemTest, TestStuff) { |
19 // ModuleSystem::NativesEnabledScope natives_enabled(module_system_.get()); | 19 // ModuleSystem::NativesEnabledScope natives_enabled(module_system_.get()); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 AssertNatives* assert_natives_; | 63 AssertNatives* assert_natives_; |
64 class StringSourceMap; | 64 class StringSourceMap; |
65 scoped_ptr<StringSourceMap> source_map_; | 65 scoped_ptr<StringSourceMap> source_map_; |
66 bool should_assertions_be_made_; | 66 bool should_assertions_be_made_; |
67 | 67 |
68 private: | 68 private: |
69 DISALLOW_COPY_AND_ASSIGN(ModuleSystemTest); | 69 DISALLOW_COPY_AND_ASSIGN(ModuleSystemTest); |
70 }; | 70 }; |
71 | 71 |
72 #endif // CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ | 72 #endif // CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ |
OLD | NEW |