Home
last modified time | relevance | path

Searched refs:length_ (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dplatformtest.cpp43 temp_ = (char *)malloc(length_ + 1); in SetUp()
44 memcpy(temp_, json_, length_); in SetUp()
50 for (size_t i = 0; i < length_; ++i) in CheckSum()
73 EXPECT_EQ(length_, l); in TEST_F()
79 EXPECT_EQ(0, memcmp(temp_, json_, length_)); in TEST_F()
107 ASSERT_EQ(length_, fread(temp_, 1, length_, fp)); in TEST_F()
118 ASSERT_EQ(length_, _read(fd, temp_, length_)); in TEST_F()
128 ASSERT_EQ(length_, read(fd, temp_, length_)); in TEST_F()
140 HANDLE mapObject = CreateFileMapping(file, NULL, PAGE_READONLY, 0, length_, NULL); in TEST_F()
142 void *p = MapViewOfFile(mapObject, FILE_MAP_READ, 0, 0, length_); in TEST_F()
[all …]
Dperftest.h65 PerfTest() : filename_(), json_(), length_(), whitespace_(), whitespace_length_() {} in PerfTest()
85 length_ = (size_t)ftell(fp); in SetUp()
87 json_ = (char*)malloc(length_ + 1); in SetUp()
88 ASSERT_EQ(length_, fread(json_, 1, length_, fp)); in SetUp()
89 json_[length_] = '\0'; in SetUp()
122 size_t length_; variable
Drapidjsontest.cpp45 temp_ = (char *)malloc(length_ + 1); in SetUp()
67 memcpy(temp_, json_, length_ + 1); in TEST_F()
77 memcpy(temp_, json_, length_ + 1); in TEST_F()
114 memcpy(temp_, json_, length_ + 1); in TEST_F()
133 memcpy(temp_, json_, length_ + 1); in TEST_F()
142 memcpy(temp_, json_, length_ + 1); in TEST_F()
167 memcpy(temp_, json_, length_ + 1); in TEST_F()
176 MemoryStream ms(json_, length_); in TEST_F()
186 MemoryStream ms(json_, length_); in TEST_F()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dfilestreamtest.cpp24 FileStreamTest() : filename_(), json_(), length_() {} in FileStreamTest()
45 length_ = (size_t)ftell(fp); in SetUp()
47 json_ = (char*)malloc(length_ + 1); in SetUp()
48 size_t readLength = fread(json_, 1, length_, fp); in SetUp()
65 size_t length_; member in FileStreamTest
74 for (size_t i = 0; i < length_; i++) { in TEST_F()
80 EXPECT_EQ(length_, s.Tell()); in TEST_F()
92 for (size_t i = 0; i < length_; i++) in TEST_F()
101 for (size_t i = 0; i < length_; i++) in TEST_F()
104 EXPECT_EQ(length_, is.Tell()); in TEST_F()
Dreadertest.cpp449 ParseStringHandler() : str_(0), length_(0), copy_() {} in ParseStringHandler()
464 length_ = length; in String()
470 size_t length_; member
483 EXPECT_EQ(StrLen(e), h.length_); \ in TEST()
490 EXPECT_EQ(StrLen(e), h2.length_); \ in TEST()
554 EXPECT_EQ(0, memcmp(e, h.str_, h.length_ + 1)); in TEST()
555 EXPECT_EQ(11u, h.length_); in TEST()
567 EXPECT_EQ(StrLen(e), h.length_); in TEST()
578 EXPECT_EQ(StrLen(e), h.length_); in TEST()
587 EXPECT_EQ(11u, h.length_); in TEST()
Dencodedstreamtest.cpp27 EncodedStreamTest() : json_(), length_() {} in EncodedStreamTest()
30 json_ = ReadFile("utf8.json", true, &length_); in SetUp()
248 size_t length_; member in EncodedStreamTest
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dreader.h617 explicit StackStream(internal::Stack<StackAllocator>& stack) : stack_(stack), length_(0) {} in StackStream()
620 ++length_; in Put()
622 size_t Length() const { return length_; } in Length()
624 return stack_.template Pop<Ch>(length_); in Pop()
632 SizeType length_; variable