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

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

Issue 484643002: Version 3.28.71.3 (merged r23081) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.28
Patch Set: Created 6 years, 4 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
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 static void SetUp(PartOfTest part); 203 static void SetUp(PartOfTest part);
204 static void RunAllTests(); 204 static void RunAllTests();
205 static void TearDown(); 205 static void TearDown();
206 // This method switches threads if we are running the Threading test. 206 // This method switches threads if we are running the Threading test.
207 // Otherwise it does nothing. 207 // Otherwise it does nothing.
208 static void Fuzz(); 208 static void Fuzz();
209 209
210 private: 210 private:
211 explicit ApiTestFuzzer(int num) 211 explicit ApiTestFuzzer(int num)
212 : Thread("ApiTestFuzzer"), 212 : Thread(Options("ApiTestFuzzer")),
213 test_number_(num), 213 test_number_(num),
214 gate_(0), 214 gate_(0),
215 active_(true) { 215 active_(true) {}
216 }
217 ~ApiTestFuzzer() {} 216 ~ApiTestFuzzer() {}
218 217
219 static bool fuzzing_; 218 static bool fuzzing_;
220 static int tests_being_run_; 219 static int tests_being_run_;
221 static int current_; 220 static int current_;
222 static int active_tests_; 221 static int active_tests_;
223 static bool NextThread(); 222 static bool NextThread();
224 int test_number_; 223 int test_number_;
225 v8::base::Semaphore gate_; 224 v8::base::Semaphore gate_;
226 bool active_; 225 bool active_;
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 HandleAndZoneScope() : main_zone_(main_isolate()) {} 556 HandleAndZoneScope() : main_zone_(main_isolate()) {}
558 557
559 // Prefixing the below with main_ reduces a lot of naming clashes. 558 // Prefixing the below with main_ reduces a lot of naming clashes.
560 i::Zone* main_zone() { return &main_zone_; } 559 i::Zone* main_zone() { return &main_zone_; }
561 560
562 private: 561 private:
563 i::Zone main_zone_; 562 i::Zone main_zone_;
564 }; 563 };
565 564
566 #endif // ifndef CCTEST_H_ 565 #endif // ifndef CCTEST_H_
OLDNEW
« no previous file with comments | « test/base-unittests/platform/platform-unittest.cc ('k') | test/cctest/compiler/test-instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698