Lines Matching refs:maxSize
74 int maxSize = 1;
76 EXPECT_EQ(1u, input1.read(buf, maxSize));
78 EXPECT_EQ(1u, input1.read(buf, maxSize));
80 EXPECT_EQ(1u, input1.read(buf, maxSize));
82 EXPECT_EQ(0u, input1.read(buf, maxSize));
84 maxSize = 2;
86 EXPECT_EQ(2u, input2.read(buf, maxSize));
88 EXPECT_EQ(1u, input2.read(buf, maxSize));
90 EXPECT_EQ(0u, input2.read(buf, maxSize));
92 maxSize = 3;
94 EXPECT_EQ(3u, input3.read(buf, maxSize));
96 EXPECT_EQ(0u, input3.read(buf, maxSize));
98 maxSize = 4;
100 EXPECT_EQ(3u, input4.read(buf, maxSize));
102 EXPECT_EQ(0u, input4.read(buf, maxSize));
111 int maxSize = 1;
113 EXPECT_EQ(1u, input1.read(buf, maxSize));
115 EXPECT_EQ(1u, input1.read(buf, maxSize));
117 EXPECT_EQ(1u, input1.read(buf, maxSize));
119 EXPECT_EQ(0u, input1.read(buf, maxSize));
121 maxSize = 2;
123 EXPECT_EQ(2u, input2.read(buf, maxSize));
125 EXPECT_EQ(1u, input2.read(buf, maxSize));
127 EXPECT_EQ(0u, input2.read(buf, maxSize));
129 maxSize = 3;
131 EXPECT_EQ(3u, input3.read(buf, maxSize));
133 EXPECT_EQ(0u, input3.read(buf, maxSize));
135 maxSize = 4;
137 EXPECT_EQ(3u, input4.read(buf, maxSize));
139 EXPECT_EQ(0u, input4.read(buf, maxSize));
150 size_t maxSize = 5;
153 EXPECT_EQ(maxSize, input.read(buf, maxSize));