Commit 0443f41e authored by Adam Klein's avatar Adam Klein Committed by Commit Bot

[cctest] Fix typo in enum value name

Change-Id: I27b1463ba14e34f3302b51c25c6efaf40ca7e3e0
Reviewed-on: https://chromium-review.googlesource.com/486185Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44823}
parent b3542042
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
#endif #endif
#endif #endif
enum InitializationState {kUnset, kUnintialized, kInitialized}; enum InitializationState { kUnset, kUninitialized, kInitialized };
static InitializationState initialization_state_ = kUnset; static InitializationState initialization_state_ = kUnset;
static bool disable_automatic_dispose_ = false; static bool disable_automatic_dispose_ = false;
CcTest* CcTest::last_ = NULL; CcTest* CcTest::last_ = NULL;
...@@ -83,10 +83,10 @@ CcTest::CcTest(TestFunction* callback, const char* file, const char* name, ...@@ -83,10 +83,10 @@ CcTest::CcTest(TestFunction* callback, const char* file, const char* name,
void CcTest::Run() { void CcTest::Run() {
if (!initialize_) { if (!initialize_) {
CHECK(initialization_state_ != kInitialized); CHECK(initialization_state_ != kInitialized);
initialization_state_ = kUnintialized; initialization_state_ = kUninitialized;
CHECK(CcTest::isolate_ == NULL); CHECK(CcTest::isolate_ == NULL);
} else { } else {
CHECK(initialization_state_ != kUnintialized); CHECK(initialization_state_ != kUninitialized);
initialization_state_ = kInitialized; initialization_state_ = kInitialized;
if (isolate_ == NULL) { if (isolate_ == NULL) {
v8::Isolate::CreateParams create_params; v8::Isolate::CreateParams create_params;
...@@ -157,7 +157,7 @@ v8::Local<v8::Context> CcTest::NewContext(CcTestExtensionFlags extensions, ...@@ -157,7 +157,7 @@ v8::Local<v8::Context> CcTest::NewContext(CcTestExtensionFlags extensions,
void CcTest::DisableAutomaticDispose() { void CcTest::DisableAutomaticDispose() {
CHECK_EQ(kUnintialized, initialization_state_); CHECK_EQ(kUninitialized, initialization_state_);
disable_automatic_dispose_ = true; disable_automatic_dispose_ = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment