Chromium Code Reviews| 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 29 matching lines...) Expand all Loading... | |
| 40 #include <crtdbg.h> | 40 #include <crtdbg.h> |
| 41 #endif | 41 #endif |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 enum InitializationState {kUnset, kUnintialized, kInitialized}; | 44 enum InitializationState {kUnset, kUnintialized, kInitialized}; |
| 45 static InitializationState initialization_state_ = kUnset; | 45 static InitializationState initialization_state_ = kUnset; |
| 46 static bool disable_automatic_dispose_ = false; | 46 static bool disable_automatic_dispose_ = false; |
| 47 | 47 |
| 48 CcTest* CcTest::last_ = NULL; | 48 CcTest* CcTest::last_ = NULL; |
| 49 bool CcTest::initialize_called_ = false; | 49 bool CcTest::initialize_called_ = false; |
| 50 | |
|
bbudge
2017/02/22 01:50:59
nit: remove whitespace
martyn.capewell
2017/02/23 13:10:41
Done.
| |
| 50 v8::base::Atomic32 CcTest::isolate_used_ = 0; | 51 v8::base::Atomic32 CcTest::isolate_used_ = 0; |
| 51 v8::ArrayBuffer::Allocator* CcTest::allocator_ = NULL; | 52 v8::ArrayBuffer::Allocator* CcTest::allocator_ = NULL; |
| 52 v8::Isolate* CcTest::isolate_ = NULL; | 53 v8::Isolate* CcTest::isolate_ = NULL; |
| 53 | 54 |
| 54 CcTest::CcTest(TestFunction* callback, const char* file, const char* name, | 55 CcTest::CcTest(TestFunction* callback, const char* file, const char* name, |
| 55 bool enabled, bool initialize) | 56 bool enabled, bool initialize) |
| 56 : callback_(callback), | 57 : callback_(callback), |
| 57 name_(name), | 58 name_(name), |
| 58 enabled_(enabled), | 59 enabled_(enabled), |
| 59 initialize_(initialize), | 60 initialize_(initialize), |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 327 CcTest::TearDown(); | 328 CcTest::TearDown(); |
| 328 // TODO(svenpanne) See comment above. | 329 // TODO(svenpanne) See comment above. |
| 329 // if (!disable_automatic_dispose_) v8::V8::Dispose(); | 330 // if (!disable_automatic_dispose_) v8::V8::Dispose(); |
| 330 v8::V8::ShutdownPlatform(); | 331 v8::V8::ShutdownPlatform(); |
| 331 delete platform; | 332 delete platform; |
| 332 return 0; | 333 return 0; |
| 333 } | 334 } |
| 334 | 335 |
| 335 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; | 336 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; |
| 336 int RegisterThreadedTest::count_ = 0; | 337 int RegisterThreadedTest::count_ = 0; |
| OLD | NEW |