OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // Only for UNINITIALIZED_TESTs | 124 // Only for UNINITIALIZED_TESTs |
125 static void DisableAutomaticDispose(); | 125 static void DisableAutomaticDispose(); |
126 | 126 |
127 // Helper function to configure a context. | 127 // Helper function to configure a context. |
128 // Must be in a HandleScope. | 128 // Must be in a HandleScope. |
129 static v8::Local<v8::Context> NewContext( | 129 static v8::Local<v8::Context> NewContext( |
130 CcTestExtensionFlags extensions, | 130 CcTestExtensionFlags extensions, |
131 v8::Isolate* isolate = CcTest::isolate()); | 131 v8::Isolate* isolate = CcTest::isolate()); |
132 | 132 |
| 133 static void TearDown() { |
| 134 // TODO(svenpanne) Enable this when our cctests are fixed. |
| 135 // if (isolate_ != NULL) isolate_->Dispose(); |
| 136 } |
| 137 |
133 private: | 138 private: |
134 friend int main(int argc, char** argv); | 139 friend int main(int argc, char** argv); |
135 TestFunction* callback_; | 140 TestFunction* callback_; |
136 const char* file_; | 141 const char* file_; |
137 const char* name_; | 142 const char* name_; |
138 const char* dependency_; | 143 const char* dependency_; |
139 bool enabled_; | 144 bool enabled_; |
140 bool initialize_; | 145 bool initialize_; |
141 CcTest* prev_; | 146 CcTest* prev_; |
142 static CcTest* last_; | 147 static CcTest* last_; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 CHECK_EQ(0, heap_profiler_->heap_object_map()->FindUntrackedObjects()); | 372 CHECK_EQ(0, heap_profiler_->heap_object_map()->FindUntrackedObjects()); |
368 heap_profiler_->StopHeapObjectsTracking(); | 373 heap_profiler_->StopHeapObjectsTracking(); |
369 } | 374 } |
370 | 375 |
371 private: | 376 private: |
372 i::HeapProfiler* heap_profiler_; | 377 i::HeapProfiler* heap_profiler_; |
373 }; | 378 }; |
374 | 379 |
375 | 380 |
376 #endif // ifndef CCTEST_H_ | 381 #endif // ifndef CCTEST_H_ |
OLD | NEW |