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

Side by Side Diff: test/cctest/test-serialize.cc

Issue 23892002: build fix for 16507 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2010 the V8 project authors. All rights reserved. 1 // Copyright 2007-2010 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 deserializer.DeserializePartial(isolate, &root2); 516 deserializer.DeserializePartial(isolate, &root2);
517 CHECK(root2->IsString()); 517 CHECK(root2->IsString());
518 CHECK(*root_handle == root2); 518 CHECK(*root_handle == root2);
519 } 519 }
520 } 520 }
521 } 521 }
522 522
523 523
524 TEST(ContextSerialization) { 524 TEST(ContextSerialization) {
525 if (!Snapshot::HaveASnapshotToStartFrom()) { 525 if (!Snapshot::HaveASnapshotToStartFrom()) {
526 v8::V8::Initialize();
527 Isolate* isolate = Isolate::Current(); 526 Isolate* isolate = Isolate::Current();
528 Serializer::Enable(isolate); 527 Serializer::Enable(isolate);
528 v8::V8::Initialize();
529 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate); 529 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate);
530 Heap* heap = isolate->heap(); 530 Heap* heap = isolate->heap();
531 531
532 v8::Persistent<v8::Context> env; 532 v8::Persistent<v8::Context> env;
533 { 533 {
534 HandleScope scope(isolate); 534 HandleScope scope(isolate);
535 env.Reset(v8_isolate, v8::Context::New(v8_isolate)); 535 env.Reset(v8_isolate, v8::Context::New(v8_isolate));
536 } 536 }
537 ASSERT(!env.IsEmpty()); 537 ASSERT(!env.IsEmpty());
538 { 538 {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 TEST(TestThatAlwaysFails) { 640 TEST(TestThatAlwaysFails) {
641 bool ArtificialFailure = false; 641 bool ArtificialFailure = false;
642 CHECK(ArtificialFailure); 642 CHECK(ArtificialFailure);
643 } 643 }
644 644
645 645
646 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 646 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
647 bool ArtificialFailure2 = false; 647 bool ArtificialFailure2 = false;
648 CHECK(ArtificialFailure2); 648 CHECK(ArtificialFailure2);
649 } 649 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698