Home
last modified time | relevance | path

Searched refs:content (Results 1 – 4 of 4) sorted by relevance

/art/runtime/base/unix_file/
Drandom_access_file_test.h75 const std::string content("hello"); in TestRead()
76 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestRead()
78 TestReadContent(content, file.get()); in TestRead()
83 void TestReadContent(const std::string& content, RandomAccessFile* file) { in TestReadContent() argument
84 const int buf_size = content.size() + 10; in TestReadContent()
90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); in TestReadContent()
91 ASSERT_EQ(std::string(buf.get(), content.size()), content); in TestReadContent()
95 ASSERT_LT(short_request, content.size()); in TestReadContent()
98 content.substr(0, short_request)); in TestReadContent()
106 content.substr(non_zero_offset, short_request)); in TestReadContent()
[all …]
Dnull_file_test.cc47 const std::string content("hello"); in TEST_F() local
51 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 0))); in TEST_F()
56 const std::string content("hello"); in TEST_F() local
59 ASSERT_EQ(-EINVAL, f.Write(content.data(), content.size(), -128)); in TEST_F()
61 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 0))); in TEST_F()
62 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 128))); in TEST_F()
Drandom_access_file_utils_test.cc30 const std::string content("hello"); in TEST_F() local
31 src.Assign(content); in TEST_F()
32 ASSERT_EQ(src.ToStringPiece(), content); in TEST_F()
/art/
DNOTICE154 origin of the Work and reproducing the content of the NOTICE file.