Home | History | Annotate | Download | only in strings

Lines Matching refs:ref

67   char ref[20], buf[20];
68 memset(ref, 'X', sizeof(ref));
69 memcpy(buf, ref, sizeof(buf));
73 EXPECT_TRUE(!memcmp(buf, ref, sizeof(buf)));
77 EXPECT_TRUE(!memcmp(buf, ref, sizeof(buf)));
82 EXPECT_TRUE(!memcmp(buf+1, ref+1, sizeof(buf)-1));
83 memcpy(buf, ref, sizeof(buf));
90 EXPECT_TRUE(!memcmp(buf+2, ref+2, sizeof(buf)-2));
91 memcpy(buf, ref, sizeof(buf));
98 EXPECT_TRUE(!memcmp(buf + sizeof(text), ref + sizeof(text),
100 memcpy(buf, ref, sizeof(buf));
105 EXPECT_TRUE(!memcmp(buf + sizeof(text), ref + sizeof(text),
107 memcpy(buf, ref, sizeof(buf));
131 char ref[20], buf[20];
132 memset(ref, 'X', sizeof(buf));
133 memcpy(buf, ref, sizeof(buf));
137 EXPECT_TRUE(!memcmp(buf, ref, sizeof(buf)));
141 EXPECT_TRUE(!memcmp(buf, ref, sizeof(buf)));
147 EXPECT_TRUE(!memcmp(buf+1, ref+1, sizeof(buf)-1));
148 memcpy(buf, ref, sizeof(buf));
156 EXPECT_TRUE(!memcmp(buf+2, ref+2, sizeof(buf)-2));
157 memcpy(buf, ref, sizeof(buf));
164 EXPECT_TRUE(!memcmp(buf + sizeof(text), ref + sizeof(text),
166 memcpy(buf, ref, sizeof(buf));
171 EXPECT_TRUE(!memcmp(buf + sizeof(text), ref + sizeof(text),
173 memcpy(buf, ref, sizeof(buf));
436 char ref[256];
437 CHECK_LE(sz, sizeof(ref));
438 sprintf(ref, "A long string: %%d 00DEADBEEF %lld 0x%llX <NULL>",
442 ref[sz-1] = '\000';
451 EXPECT_EQ(std::string(ref).substr(0, kSSizeMax-1), std::string(tmp.get()));
485 char ref[256];
486 PrintLongString(ref, sizeof(ref));
487 for (size_t i = strlen(ref)+1; i; --i) {
488 char buf[sizeof(ref)];
490 EXPECT_EQ(std::string(ref, i - 1), std::string(buf));
500 for (size_t i = strlen(ref)+1; i > 1; --i) {
502 char buf[sizeof(ref)];
504 EXPECT_EQ(std::string(ref, i - 1), std::string(buf));