Make sure ByteReader<T>::Read* is properly constified.
Also, start using it in real code... BUG= R=holmer@google.com, pbos@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/37809004 Cr-Commit-Position: refs/heads/master@{#8181} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8181 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -52,7 +52,7 @@ class ByteIoTest : public ::testing::Test {
|
||||
|
||||
// Test reading big endian numbers.
|
||||
// Template arguments: Type T, read method RM(buffer), B bytes of data.
|
||||
template <typename T, T (*RM)(uint8_t*), int B>
|
||||
template <typename T, T (*RM)(const uint8_t*), int B>
|
||||
void TestRead(bool big_endian) {
|
||||
// Test both for values that are positive and negative (if signed)
|
||||
for (int neg = 0; neg < 2; ++neg) {
|
||||
|
||||
Reference in New Issue
Block a user