OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 reader.read(buffer, sizeof(data2)); | 77 reader.read(buffer, sizeof(data2)); |
78 REPORTER_ASSERT(reporter, !memcmp(data2, buffer, sizeof(data2))); | 78 REPORTER_ASSERT(reporter, !memcmp(data2, buffer, sizeof(data2))); |
79 | 79 |
80 reader.setMemory(NULL, 0); | 80 reader.setMemory(NULL, 0); |
81 assert_empty(reporter, reader); | 81 assert_empty(reporter, reader); |
82 REPORTER_ASSERT(reporter, NULL == reader.base()); | 82 REPORTER_ASSERT(reporter, NULL == reader.base()); |
83 REPORTER_ASSERT(reporter, NULL == reader.peek()); | 83 REPORTER_ASSERT(reporter, NULL == reader.peek()); |
84 } | 84 } |
85 | 85 |
86 #include "TestClassDef.h" | 86 #include "TestClassDef.h" |
87 DEFINE_TESTCLASS("Reader32", Reader32Class, Tests) | 87 DEFINE_TESTCLASS_SHORT(Tests) |
OLD | NEW |