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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 if (fp_ == NULL) { | 170 if (fp_ == NULL) { |
171 PrintF("Unable to write to snapshot file \"%s\"\n", snapshot_file); | 171 PrintF("Unable to write to snapshot file \"%s\"\n", snapshot_file); |
172 exit(1); | 172 exit(1); |
173 } | 173 } |
174 } | 174 } |
175 virtual ~FileByteSink() { | 175 virtual ~FileByteSink() { |
176 if (fp_ != NULL) { | 176 if (fp_ != NULL) { |
177 fclose(fp_); | 177 fclose(fp_); |
178 } | 178 } |
179 } | 179 } |
180 virtual void Put(int byte, const char* description) { | 180 virtual void Put(byte b, const char* description) { |
181 if (fp_ != NULL) { | 181 if (fp_ != NULL) { |
182 fputc(byte, fp_); | 182 fputc(b, fp_); |
183 } | 183 } |
184 } | 184 } |
185 virtual int Position() { | 185 virtual int Position() { |
186 return ftell(fp_); | 186 return ftell(fp_); |
187 } | 187 } |
188 void WriteSpaceUsed( | 188 void WriteSpaceUsed( |
189 int new_space_used, | 189 int new_space_used, |
190 int pointer_space_used, | 190 int pointer_space_used, |
191 int data_space_used, | 191 int data_space_used, |
192 int code_space_used, | 192 int code_space_used, |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 TEST(TestThatAlwaysFails) { | 654 TEST(TestThatAlwaysFails) { |
655 bool ArtificialFailure = false; | 655 bool ArtificialFailure = false; |
656 CHECK(ArtificialFailure); | 656 CHECK(ArtificialFailure); |
657 } | 657 } |
658 | 658 |
659 | 659 |
660 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 660 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
661 bool ArtificialFailure2 = false; | 661 bool ArtificialFailure2 = false; |
662 CHECK(ArtificialFailure2); | 662 CHECK(ArtificialFailure2); |
663 } | 663 } |
OLD | NEW |