aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Horn2009-05-26 11:31:45 +0000
committerMax Horn2009-05-26 11:31:45 +0000
commit1c552779a030f649de0089aa4609fbe66271a707 (patch)
tree25a11a3b6d80a871a6534e08d49c2091407864a2 /test
parent7d5f3e1714dff2f0beed0f10bcce01be8204f377 (diff)
downloadscummvm-rg350-1c552779a030f649de0089aa4609fbe66271a707.tar.gz
scummvm-rg350-1c552779a030f649de0089aa4609fbe66271a707.tar.bz2
scummvm-rg350-1c552779a030f649de0089aa4609fbe66271a707.zip
Renamed Common::Serializer::syncMagic to matchBytes, and added version paarms to it (we migh want to add corresponding matchUint32LE etc. functions if needed)
svn-id: r40909
Diffstat (limited to 'test')
-rw-r--r--test/common/serializer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common/serializer.h b/test/common/serializer.h
index b3b04e7711..160e5ad667 100644
--- a/test/common/serializer.h
+++ b/test/common/serializer.h
@@ -43,7 +43,7 @@ public:
void readVersioned_v1(Common::SeekableReadStream *stream, Common::Serializer::Version version) {
Common::Serializer ser(stream, 0);
- TS_ASSERT(ser.syncMagic("MAGI", 4));
+ TS_ASSERT(ser.matchBytes("MAGI", 4));
TS_ASSERT(ser.syncVersion(1));
TS_ASSERT_EQUALS(ser.getVersion(), version);
@@ -64,7 +64,7 @@ public:
void readVersioned_v2(Common::SeekableReadStream *stream, Common::Serializer::Version version) {
Common::Serializer ser(stream, 0);
- TS_ASSERT(ser.syncMagic("MAGI", 4));
+ TS_ASSERT(ser.matchBytes("MAGI", 4));
TS_ASSERT(ser.syncVersion(2));
TS_ASSERT_EQUALS(ser.getVersion(), version);