Home
last modified time | relevance | path

Searched refs:kTestString (Results 1 – 13 of 13) 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/pigweed/pw_kvs/
Dkey_test.cc25 constexpr const char kTestString[] = "test_string"; variable
26 constexpr std::string_view kTestStringView{kTestString};
62 Key key{kTestString}; in TEST()
65 EXPECT_EQ(key.data(), kTestString); in TEST()
71 Key key{kTestString, kTestStringView.size() + 1}; // include null terminator in TEST()
80 Key key1{kTestString}; in TEST()
99 for (auto c : Key{kTestString}) { in TEST()
100 EXPECT_EQ(c, kTestString[i++]); in TEST()
106 EXPECT_TRUE((Key{kTestString} == Key{kTestString2, kTestStringView.size()})); in TEST()
107 EXPECT_FALSE((Key{kTestString} != Key{kTestString2, kTestStringView.size()})); in TEST()
[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/pigweed/pw_persistent_ram/
Dpersistent_buffer_test.cc80 constexpr std::string_view kTestString( in TEST_F() local
90 for (size_t i = 0; i < kTestString.length(); i += kWriteSize) { in TEST_F()
91 writer.Write(kTestString.data() + i, in TEST_F()
92 std::min(kWriteSize, kTestString.length() - i)); in TEST_F()
104 ASSERT_STREQ(kTestString.data(), in TEST_F()
122 constexpr std::string_view kTestString("Test string one!"); in TEST_F() local
146 writer.Write(std::as_bytes(std::span<const char>(kTestString))); in TEST_F()
153 EXPECT_EQ(persistent.size(), sizeof(kTestNumber) + kTestString.length()); in TEST_F()
/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/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/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_test.cc54 const std::string kTestString("lies"); variable
205 p_->string_prop_.SetValue(kTestString); in TEST_F()
207 p_->stringlist_prop_.SetValue({kTestString}); in TEST_F()
475 "BadInterfaceName", kStringPropName, brillo::Any(kTestString)); in TEST_F()
482 kTestInterface3, "IAmNotAProperty", brillo::Any(kTestString)); in TEST_F()
489 kTestInterface3, kStringPropName, brillo::Any(kTestString)); in TEST_F()
520 EXPECT_CALL(property_validator, ValidateProperty(_, kTestString)) in TEST_F()
523 kTestInterface3, kStringPropName, brillo::Any(kTestString)); in TEST_F()
534 EXPECT_CALL(property_validator, ValidateProperty(_, kTestString)) in TEST_F()
537 kTestInterface3, kStringPropName, brillo::Any(kTestString)); in TEST_F()
[all …]
/external/perfetto/src/protozero/
Dproto_decoder_unittest.cc46 static constexpr char kTestString[] = "test"; in TEST() local
47 message->AppendString(1, kTestString); in TEST()
53 ASSERT_EQ(field.size(), sizeof(kTestString) - 1); in TEST()
54 for (size_t i = 0; i < sizeof(kTestString) - 1; i++) { in TEST()
55 ASSERT_EQ(field.data()[i], kTestString[i]); in TEST()
110 static constexpr char kTestString[] = "test"; in TEST() local
112 message->AppendString(1, kTestString); in TEST()
119 ASSERT_EQ(it->size(), sizeof(kTestString) - 1); in TEST()
120 ASSERT_EQ(it->as_std_string(), std::string(kTestString)); in TEST()
121 ASSERT_EQ((*it).ToStdString(), std::string(kTestString)); 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/libchrome/components/policy/core/common/
Dconfiguration_policy_provider_test.cc251 const char kTestString[] = "string_value"; in TEST_P() local
252 base::Value expected_value(kTestString); in TEST_P()
258 kTestString)); in TEST_P()
/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()