Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Unified Diff: test/cctest/test-date.cc

Issue 12716010: Added a version of the v8::HandleScope constructor with an Isolate and use that consistently. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed rest Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/test-date.cc
diff --git a/test/cctest/test-date.cc b/test/cctest/test-date.cc
index 903a63a5d96df2bc40feefb7f389f74aa90c640c..0152bb7a81134f9769e64d023609e92e506ac6e2 100644
--- a/test/cctest/test-date.cc
+++ b/test/cctest/test-date.cc
@@ -119,8 +119,8 @@ static void CheckDST(int64_t time) {
TEST(DaylightSavingsTime) {
LocalContext context;
- v8::HandleScope scope;
- Isolate* isolate = Isolate::Current();
+ v8::Isolate* isolate = context->GetIsolate();
+ v8::HandleScope scope(isolate);
DateCacheMock::Rule rules[] = {
{0, 2, 0, 10, 0, 3600}, // DST from March to November in any year.
{2010, 2, 0, 7, 20, 3600}, // DST from March to August 20 in 2010.
@@ -133,7 +133,7 @@ TEST(DaylightSavingsTime) {
DateCacheMock* date_cache =
new DateCacheMock(local_offset_ms, rules, ARRAY_SIZE(rules));
- isolate->set_date_cache(date_cache);
+ reinterpret_cast<Isolate*>(isolate)->set_date_cache(date_cache);
int64_t start_of_2010 = TimeFromYearMonthDay(date_cache, 2010, 0, 1);
int64_t start_of_2011 = TimeFromYearMonthDay(date_cache, 2011, 0, 1);

Powered by Google App Engine
This is Rietveld 408576698