Home | History | Annotate | Download | only in test

Lines Matching refs:string

26 #include <string.h>
34 std::function<void(const std::string &)> comment_callback,
54 // StripSpace returns a string containing up to |len| characters from |str| with
56 static std::string StripSpace(const char *str, size_t len) {
65 return std::string(str, len);
68 static std::pair<std::string, std::string> ParseKeyValue(const char *str, const size_t len) {
70 std::string key, value;
83 for (const std::string &key : unused_attributes_) {
89 for (const std::string &key : unused_instructions_) {
135 current_test_ += std::string(buf.get());
160 std::string kv = buf.get();
178 kv = std::string(kv.begin() + 1, kv.end() - 1);
182 if (idx == std::string::npos) {
185 std::string key, value;
201 current_test_ += std::string(buf.get(), len);
202 std::string key, value;
206 std::string mapped_key = key;
240 const std::string &FileTest::GetType() {
245 const std::string &FileTest::GetParameter() {
250 bool FileTest::HasAttribute(const std::string &key) {
255 bool FileTest::GetAttribute(std::string *out_value, const std::string &key) {
266 const std::string &FileTest::GetAttributeOrDie(const std::string &key) {
273 bool FileTest::HasInstruction(const std::string &key) {
278 bool FileTest::GetInstruction(std::string *out_value, const std::string &key) {
289 const std::string &FileTest::CurrentTestToString() const {
309 bool FileTest::GetBytes(std::vector<uint8_t> *out, const std::string &key) {
310 std::string value;
337 static std::string EncodeHex(const uint8_t *in, size_t in_len) {
339 std::string ret;
355 std::string expected_hex = EncodeHex(expected, expected_len);
356 std::string actual_hex = EncodeHex(actual, actual_len);
376 void FileTest::OnKeyUsed(const std::string &key) {
380 void FileTest::OnInstructionUsed(const std::string &key) {
388 void FileTest::InjectInstruction(const std::string &key,
389 const std::string &value) {