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:
sprang@webrtc.org
2015-01-28 12:37:36 +00:00
parent 7aef80c6d1
commit 2a6558c2a5
3 changed files with 15 additions and 15 deletions

View File

@ -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) {