OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 for (size_t i = 0; i < arraysize(expected_vals); ++i) { | 336 for (size_t i = 0; i < arraysize(expected_vals); ++i) { |
337 memset(expected_buffer.get(), expected_vals[i], buffer_size); | 337 memset(expected_buffer.get(), expected_vals[i], buffer_size); |
338 EXPECT_EQ(SR_SUCCESS, | 338 EXPECT_EQ(SR_SUCCESS, |
339 stream_->ReadAll(buffer.get(), buffer_size, nullptr, nullptr)); | 339 stream_->ReadAll(buffer.get(), buffer_size, nullptr, nullptr)); |
340 EXPECT_EQ(0, memcmp(buffer.get(), expected_buffer.get(), buffer_size)); | 340 EXPECT_EQ(0, memcmp(buffer.get(), expected_buffer.get(), buffer_size)); |
341 } | 341 } |
342 EXPECT_EQ(SR_EOS, stream_->ReadAll(buffer.get(), 1, nullptr, nullptr)); | 342 EXPECT_EQ(SR_EOS, stream_->ReadAll(buffer.get(), 1, nullptr, nullptr)); |
343 } | 343 } |
344 | 344 |
345 } // namespace rtc | 345 } // namespace rtc |
OLD | NEW |