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

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

Issue 536090: Fix test-serialize. (Closed)
Patch Set: Created 10 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
« 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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