Home
last modified time | relevance | path

Searched refs:kTestString (Results 1 – 10 of 10) sorted by relevance

/external/grpc-grpc/test/cpp/util/
Dstring_ref_test.cc28 const char kTestString[] = "blah"; variable
42 string_ref s(kTestString); in TEST_F()
43 EXPECT_EQ(strlen(kTestString), s.length()); in TEST_F()
44 EXPECT_EQ(kTestString, s.data()); in TEST_F()
48 string_ref s(kTestString, 2); in TEST_F()
50 EXPECT_EQ(kTestString, s.data()); in TEST_F()
54 string copy(kTestString); in TEST_F()
61 string_ref s1(kTestString); in TEST_F()
77 string_ref s1(kTestString); in TEST_F()
87 string_ref s(kTestString); in TEST_F()
[all …]
/external/libchrome/mojo/public/cpp/system/tests/
Dstring_data_pipe_producer_unittest.cc124 const std::string kTestString = "Hello, world!"; in TEST_F() local
127 mojo::DataPipe pipe(static_cast<uint32_t>(kTestString.size())); in TEST_F()
131 kTestString, in TEST_F()
136 EXPECT_EQ(kTestString, reader.data()); in TEST_F()
140 const std::string kTestString = "Hello, world!"; in TEST_F() local
143 mojo::DataPipe pipe(static_cast<uint32_t>(kTestString.size() * 2)); in TEST_F()
147 kTestString, in TEST_F()
152 EXPECT_EQ(kTestString, reader.data()); in TEST_F()
156 const std::string kTestString = "Hello, world!"; in TEST_F() local
159 mojo::DataPipe pipe(static_cast<uint32_t>(kTestString.size() / 2)); in TEST_F()
[all …]
Dfile_data_pipe_producer_unittest.cc207 const std::string kTestString = "abcdefghijklmnopqrstuvwxyz"; in TEST_F() local
208 base::FilePath path = CreateTempFileWithContents(kTestString); in TEST_F()
212 DataPipe pipe(static_cast<uint32_t>(kTestString.size())); in TEST_F()
213 DataPipeReader reader(std::move(pipe.consumer_handle), kTestString.size(), in TEST_F()
225 EXPECT_EQ(kTestString.substr(0, kBytesToWrite), reader.data()); in TEST_F()
284 const std::string kTestString = "."; in TEST_F() local
285 base::FilePath path = CreateTempFileWithContents(kTestString); in TEST_F()
298 EXPECT_EQ(kTestString, reader.data()); in TEST_F()
300 EXPECT_EQ(kTestString.size(), observer_data.bytes_read); in TEST_F()
/external/skia/tests/
DDiscardableMemoryTest.cpp17 constexpr char kTestString[] = "HELLO, WORLD!"; variable
18 constexpr size_t kTestStringLength = sizeof(kTestString);
33 memcpy(ptr, kTestString, sizeof(kTestString)); in test_dm()
47 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, kTestString, kTestStringLength)); in test_dm()
/external/skqp/tests/
DDiscardableMemoryTest.cpp17 constexpr char kTestString[] = "HELLO, WORLD!"; variable
18 constexpr size_t kTestStringLength = sizeof(kTestString);
33 memcpy(ptr, kTestString, sizeof(kTestString)); in test_dm()
47 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, kTestString, kTestStringLength)); in test_dm()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dtest_helpers_unittest.cc102 const std::string kTestString = "a machine that goes 'ping'"; in TEST_F() local
104 wait_for_echo.Echo(kTestString, &response); in TEST_F()
105 EXPECT_EQ(kTestString, response); in TEST_F()
113 WriteMessageRaw(pipe.handle0.get(), kTestString.data(), kTestString.size(), in TEST_F()
124 EXPECT_EQ(kTestString, original_message); in TEST_F()
/external/libbrillo/brillo/dbus/
Dexported_property_set_unittest.cc54 const std::string kTestString("lies"); variable
206 p_->string_prop_.SetValue(kTestString); in TEST_F()
208 p_->stringlist_prop_.SetValue({kTestString}); in TEST_F()
476 "BadInterfaceName", kStringPropName, brillo::Any(kTestString)); in TEST_F()
483 kTestInterface3, "IAmNotAProperty", brillo::Any(kTestString)); in TEST_F()
490 kTestInterface3, kStringPropName, brillo::Any(kTestString)); in TEST_F()
521 EXPECT_CALL(property_validator, ValidateProperty(_, kTestString)) in TEST_F()
524 kTestInterface3, kStringPropName, brillo::Any(kTestString)); in TEST_F()
535 EXPECT_CALL(property_validator, ValidateProperty(_, kTestString)) in TEST_F()
538 kTestInterface3, kStringPropName, brillo::Any(kTestString)); in TEST_F()
[all …]
/external/perfetto/src/protozero/
Dproto_decoder_unittest.cc37 static constexpr char kTestString[] = "test"; in TEST() local
38 message->AppendString(1, kTestString); in TEST()
44 ASSERT_EQ(field.size(), sizeof(kTestString) - 1); in TEST()
45 for (size_t i = 0; i < sizeof(kTestString) - 1; i++) { in TEST()
46 ASSERT_EQ(field.data()[i], kTestString[i]); in TEST()
/external/libchrome/base/strings/
Dsafe_sprintf_unittest.cc207 const char kTestString[] = "This is a test"; in TEST() local
208 std::unique_ptr<char[]> buf(new char[sizeof(kTestString)]); in TEST()
209 EXPECT_EQ(static_cast<ssize_t>(sizeof(kTestString) - 1), in TEST()
210 SafeSNPrintf(buf.get(), sizeof(kTestString), kTestString)); in TEST()
211 EXPECT_EQ(std::string(kTestString), std::string(buf.get())); in TEST()
212 EXPECT_EQ(static_cast<ssize_t>(sizeof(kTestString) - 1), in TEST()
213 SafeSNPrintf(buf.get(), sizeof(kTestString), "%s", kTestString)); in TEST()
214 EXPECT_EQ(std::string(kTestString), std::string(buf.get())); in TEST()
/external/lzma/CPP/7zip/UI/Console/
DExtractCallbackConsole.cpp183 static const char * const kTestString = "T"; variable
328 case NArchive::NExtract::NAskMode::kTest: s = kTestString; break; in PrepareOperation()