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

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

Issue 11970009: Make the Isolate parameter mandatory in Locker and Unlocker classes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Added TODO. Created 7 years, 11 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 | « test/cctest/cctest.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 PrintTestList(current->prev()); 62 PrintTestList(current->prev());
63 if (current->dependency() != NULL) { 63 if (current->dependency() != NULL) {
64 printf("%s/%s<%s\n", 64 printf("%s/%s<%s\n",
65 current->file(), current->name(), current->dependency()); 65 current->file(), current->name(), current->dependency());
66 } else { 66 } else {
67 printf("%s/%s<\n", current->file(), current->name()); 67 printf("%s/%s<\n", current->file(), current->name());
68 } 68 }
69 } 69 }
70 70
71 71
72 v8::Isolate* CcTest::default_isolate_;
73
72 int main(int argc, char* argv[]) { 74 int main(int argc, char* argv[]) {
73 v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true); 75 v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true);
76 CcTest::set_default_isolate(v8::Isolate::GetCurrent());
77 CHECK(CcTest::default_isolate() != NULL);
74 int tests_run = 0; 78 int tests_run = 0;
75 bool print_run_count = true; 79 bool print_run_count = true;
76 for (int i = 1; i < argc; i++) { 80 for (int i = 1; i < argc; i++) {
77 char* arg = argv[i]; 81 char* arg = argv[i];
78 if (strcmp(arg, "--list") == 0) { 82 if (strcmp(arg, "--list") == 0) {
79 PrintTestList(CcTest::last()); 83 PrintTestList(CcTest::last());
80 print_run_count = false; 84 print_run_count = false;
81 85
82 } else { 86 } else {
83 char* arg_copy = v8::internal::StrDup(arg); 87 char* arg_copy = v8::internal::StrDup(arg);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 121 }
118 } 122 }
119 if (print_run_count && tests_run != 1) 123 if (print_run_count && tests_run != 1)
120 printf("Ran %i tests.\n", tests_run); 124 printf("Ran %i tests.\n", tests_run);
121 v8::V8::Dispose(); 125 v8::V8::Dispose();
122 return 0; 126 return 0;
123 } 127 }
124 128
125 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; 129 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL;
126 int RegisterThreadedTest::count_ = 0; 130 int RegisterThreadedTest::count_ = 0;
OLDNEW
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698