Lines Matching refs:Cursor

40   BitstreamCursor Cursor(Reader);  in TEST()  local
42 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST()
43 (void)Cursor.Read(8); in TEST()
44 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST()
45 (void)Cursor.Read(24); in TEST()
46 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST()
48 Cursor.JumpToBit(0); in TEST()
49 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST()
51 Cursor.JumpToBit(32); in TEST()
52 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST()
60 BitstreamCursor Cursor(Reader); in TEST() local
62 Cursor.JumpToBit(32); in TEST()
63 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST()
69 BitstreamCursor Cursor(Reader); in TEST() local
71 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST()
77 SimpleBitstreamCursor Cursor(Reader); in TEST() local
80 EXPECT_EQ(I / 8, Cursor.getCurrentByteNo()); in TEST()
81 (void)Cursor.Read(1); in TEST()
83 EXPECT_EQ(4u, Cursor.getCurrentByteNo()); in TEST()
89 SimpleBitstreamCursor Cursor(Reader); in TEST() local
92 EXPECT_EQ(Bytes + I, Cursor.getPointerToByte(I, 1)); in TEST()
99 SimpleBitstreamCursor Cursor(Reader); in TEST() local
102 EXPECT_EQ(Bytes + I, Cursor.getPointerToBit(I * 8, 1)); in TEST()
109 SimpleBitstreamCursor Cursor(Reader); in TEST() local
112 Cursor.jumpToPointer(Bytes + I); in TEST()
113 EXPECT_EQ(I, Cursor.getCurrentByteNo()); in TEST()
121 SimpleBitstreamCursor Cursor(Reader); in TEST() local
123 Cursor.setArtificialByteLimit(8); in TEST()
124 EXPECT_EQ(8u, Cursor.getSizeIfKnown()); in TEST()
125 while (!Cursor.AtEndOfStream()) in TEST()
126 (void)Cursor.Read(1); in TEST()
128 EXPECT_EQ(8u, Cursor.getCurrentByteNo()); in TEST()
135 SimpleBitstreamCursor Cursor(Reader); in TEST() local
137 Cursor.setArtificialByteLimit(5); in TEST()
138 EXPECT_EQ(8u, Cursor.getSizeIfKnown()); in TEST()
139 while (!Cursor.AtEndOfStream()) in TEST()
140 (void)Cursor.Read(1); in TEST()
142 EXPECT_EQ(8u, Cursor.getCurrentByteNo()); in TEST()
149 SimpleBitstreamCursor Cursor(Reader); in TEST() local
153 Cursor.setArtificialByteLimit(24); in TEST()
154 EXPECT_EQ(24u, Cursor.getSizeIfKnown()); in TEST()
155 while (!Cursor.AtEndOfStream()) in TEST()
156 (void)Cursor.Read(1); in TEST()
158 EXPECT_EQ(12u, Cursor.getCurrentByteNo()); in TEST()
159 EXPECT_EQ(12u, Cursor.getSizeIfKnown()); in TEST()
166 SimpleBitstreamCursor Cursor(Reader); in TEST() local
169 while (!Cursor.AtEndOfStream()) in TEST()
170 (void)Cursor.Read(1); in TEST()
171 EXPECT_EQ(12u, Cursor.getCurrentByteNo()); in TEST()
172 EXPECT_EQ(12u, Cursor.getSizeIfKnown()); in TEST()
174 Cursor.setArtificialByteLimit(20); in TEST()
175 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST()
176 EXPECT_EQ(12u, Cursor.getSizeIfKnown()); in TEST()