OLD | NEW |
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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 virtual ~FileByteSink() { | 286 virtual ~FileByteSink() { |
287 if (fp_ != NULL) { | 287 if (fp_ != NULL) { |
288 fclose(fp_); | 288 fclose(fp_); |
289 } | 289 } |
290 } | 290 } |
291 virtual void Put(int byte, const char* description) { | 291 virtual void Put(int byte, const char* description) { |
292 if (fp_ != NULL) { | 292 if (fp_ != NULL) { |
293 fputc(byte, fp_); | 293 fputc(byte, fp_); |
294 } | 294 } |
295 } | 295 } |
| 296 virtual int Position() { |
| 297 return ftell(fp_); |
| 298 } |
296 void WriteSpaceUsed( | 299 void WriteSpaceUsed( |
297 int new_space_used, | 300 int new_space_used, |
298 int pointer_space_used, | 301 int pointer_space_used, |
299 int data_space_used, | 302 int data_space_used, |
300 int code_space_used, | 303 int code_space_used, |
301 int map_space_used, | 304 int map_space_used, |
302 int cell_space_used, | 305 int cell_space_used, |
303 int large_space_used); | 306 int large_space_used); |
304 | 307 |
305 private: | 308 private: |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 TEST(TestThatAlwaysFails) { | 508 TEST(TestThatAlwaysFails) { |
506 bool ArtificialFailure = false; | 509 bool ArtificialFailure = false; |
507 CHECK(ArtificialFailure); | 510 CHECK(ArtificialFailure); |
508 } | 511 } |
509 | 512 |
510 | 513 |
511 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 514 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
512 bool ArtificialFailure2 = false; | 515 bool ArtificialFailure2 = false; |
513 CHECK(ArtificialFailure2); | 516 CHECK(ArtificialFailure2); |
514 } | 517 } |
OLD | NEW |