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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() { | 133 static void TearDown() { |
134 if (isolate_ != NULL) isolate_->Dispose(); | 134 // TODO(svenpanne) Enable this when our cctests are fixed. |
| 135 // if (isolate_ != NULL) isolate_->Dispose(); |
135 } | 136 } |
136 | 137 |
137 private: | 138 private: |
138 friend int main(int argc, char** argv); | 139 friend int main(int argc, char** argv); |
139 TestFunction* callback_; | 140 TestFunction* callback_; |
140 const char* file_; | 141 const char* file_; |
141 const char* name_; | 142 const char* name_; |
142 const char* dependency_; | 143 const char* dependency_; |
143 bool enabled_; | 144 bool enabled_; |
144 bool initialize_; | 145 bool initialize_; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 CHECK_EQ(0, heap_profiler_->heap_object_map()->FindUntrackedObjects()); | 372 CHECK_EQ(0, heap_profiler_->heap_object_map()->FindUntrackedObjects()); |
372 heap_profiler_->StopHeapObjectsTracking(); | 373 heap_profiler_->StopHeapObjectsTracking(); |
373 } | 374 } |
374 | 375 |
375 private: | 376 private: |
376 i::HeapProfiler* heap_profiler_; | 377 i::HeapProfiler* heap_profiler_; |
377 }; | 378 }; |
378 | 379 |
379 | 380 |
380 #endif // ifndef CCTEST_H_ | 381 #endif // ifndef CCTEST_H_ |
OLD | NEW |