Lines Matching refs:range

95   MemoryRange range;  in TEST()  local
96 EXPECT_EQ(NULL, range.data()); in TEST()
97 EXPECT_EQ(0U, range.length()); in TEST()
101 MemoryRange range(kBuffer, kBufferSize); in TEST() local
102 EXPECT_EQ(kBufferPointer, range.data()); in TEST()
103 EXPECT_EQ(kBufferSize, range.length()); in TEST()
107 MemoryRange range; in TEST() local
108 range.Reset(); in TEST()
109 EXPECT_EQ(NULL, range.data()); in TEST()
110 EXPECT_EQ(0U, range.length()); in TEST()
112 range.Set(kBuffer, kBufferSize); in TEST()
113 EXPECT_EQ(kBufferPointer, range.data()); in TEST()
114 EXPECT_EQ(kBufferSize, range.length()); in TEST()
116 range.Reset(); in TEST()
117 EXPECT_EQ(NULL, range.data()); in TEST()
118 EXPECT_EQ(0U, range.length()); in TEST()
122 MemoryRange range; in TEST() local
123 range.Set(kBuffer, kBufferSize); in TEST()
124 EXPECT_EQ(kBufferPointer, range.data()); in TEST()
125 EXPECT_EQ(kBufferSize, range.length()); in TEST()
127 range.Set(NULL, 0); in TEST()
128 EXPECT_EQ(NULL, range.data()); in TEST()
129 EXPECT_EQ(0U, range.length()); in TEST()
133 MemoryRange range; in TEST() local
134 MemoryRange subrange = range.Subrange(0, 10); in TEST()
140 MemoryRange range(kBuffer, kBufferSize); in TEST() local
148 MemoryRange subrange = range.Subrange(sub_offset, sub_length); in TEST()
150 EXPECT_TRUE(range.Covers(sub_offset, sub_length)); in TEST()
152 range.GetData(sub_offset, sub_length)); in TEST()
156 EXPECT_FALSE(range.Covers(sub_offset, sub_length)); in TEST()
157 EXPECT_EQ(NULL, range.GetData(sub_offset, sub_length)); in TEST()
165 MemoryRange range(kBuffer, kBufferSize); in TEST() local
166 const char* char_pointer = range.GetData<char>(0); in TEST()
168 const int* int_pointer = range.GetData<int>(0); in TEST()
173 MemoryRange range(kBuffer, kBufferSize); in TEST() local
182 EXPECT_EQ(element_pointer, range.GetArrayElement( in TEST()
188 MemoryRange range(kBuffer, kBufferSize); in TEST() local
189 const char* char_pointer = range.GetArrayElement<char>(0, 0); in TEST()
191 const int* int_pointer = range.GetArrayElement<int>(0, 0); in TEST()