Home
last modified time | relevance | path

Searched refs:ASSERT_NO_ERROR (Results 1 – 24 of 24) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DFileOutputBufferTest.cpp22 #define ASSERT_NO_ERROR(x) \ macro
38 ASSERT_NO_ERROR( in TEST()
48 ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError())); in TEST()
55 ASSERT_NO_ERROR(errorToErrorCode(Buffer->commit())); in TEST()
60 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); in TEST()
62 ASSERT_NO_ERROR(fs::remove(File1.str())); in TEST()
70 ASSERT_NO_ERROR(errorToErrorCode(Buffer2OrErr.takeError())); in TEST()
79 ASSERT_NO_ERROR(fs::remove(File2.str())); in TEST()
87 ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError())); in TEST()
93 ASSERT_NO_ERROR(errorToErrorCode(Buffer->commit())); in TEST()
[all …]
DPath.cpp42 #define ASSERT_NO_ERROR(x) \ macro
175 ASSERT_NO_ERROR(fs::make_absolute(temp_store)); in TEST()
190 ASSERT_NO_ERROR(sys::fs::make_absolute("/root", Relative)); in TEST()
457 ASSERT_NO_ERROR( in SetUp()
469 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown()
476 ASSERT_NO_ERROR( in TEST_F()
481 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F()
482 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F()
488 ASSERT_NO_ERROR( in TEST_F()
492 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); in TEST_F()
[all …]
DReplaceFileTest.cpp21 #define ASSERT_NO_ERROR(x) \ macro
73 ASSERT_NO_ERROR(fs::createUniqueDirectory( in TEST()
83 ASSERT_NO_ERROR(CreateFileWithContent(SourceFileName, "!!source!!")); in TEST()
84 ASSERT_NO_ERROR(CreateFileWithContent(TargetFileName, "!!target!!")); in TEST()
89 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST()
114 ASSERT_NO_ERROR(fs::remove(SourceFileName)); in TEST()
115 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
122 ASSERT_NO_ERROR( in TEST()
137 ASSERT_NO_ERROR(CreateFileWithContent(SourceFileName, "!!source!!")); in TEST()
138 ASSERT_NO_ERROR(CreateFileWithContent(TargetFileName, "!!target!!")); in TEST()
[all …]
DProgramTest.cpp39 #define ASSERT_NO_ERROR(x) \ macro
133 ASSERT_NO_ERROR( in TEST_F()
150 ASSERT_NO_ERROR(fs::remove(Twine(LongPath))); in TEST_F()
151 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory))); in TEST_F()
310 ASSERT_NO_ERROR(fs::createUniqueDirectory("program-test", TestDirectory)); in TEST()
316 ASSERT_NO_ERROR(sys::writeFileWithEncoding(file_pathname.c_str(), utf8_text, in TEST()
319 ASSERT_NO_ERROR(fs::openFileForRead(file_pathname.c_str(), fd)); in TEST()
336 ASSERT_NO_ERROR(fs::remove(file_pathname.str())); in TEST()
337 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
DHost.cpp19 #define ASSERT_NO_ERROR(x) \ macro
183 ASSERT_NO_ERROR(fs::createUniqueDirectory("host_test", TestDirectory)); in TEST_F()
197 ASSERT_NO_ERROR(fs::openFileForRead(OutputPath, FD)); in TEST_F()
218 ASSERT_NO_ERROR(fs::remove(OutputPath)); in TEST_F()
219 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST_F()
Draw_pwrite_stream_test.cpp19 #define ASSERT_NO_ERROR(x) \ macro
63 ASSERT_NO_ERROR(sys::fs::openFileForRead(Path, FD)); in TEST()
65 ASSERT_NO_ERROR(sys::fs::createTemporaryFile("foo", "bar", FD, Path)); in TEST()
/external/llvm/unittests/Support/
DPath.cpp32 #define ASSERT_NO_ERROR(x) \ macro
142 ASSERT_NO_ERROR(fs::make_absolute(temp_store)); in TEST()
157 ASSERT_NO_ERROR(sys::fs::make_absolute("/root", Relative)); in TEST()
432 ASSERT_NO_ERROR( in SetUp()
439 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown()
446 ASSERT_NO_ERROR( in TEST_F()
451 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F()
452 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F()
458 ASSERT_NO_ERROR( in TEST_F()
462 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); in TEST_F()
[all …]
DFileOutputBufferTest.cpp21 #define ASSERT_NO_ERROR(x) \ macro
34 ASSERT_NO_ERROR( in TEST()
44 ASSERT_NO_ERROR(BufferOrErr.getError()); in TEST()
51 ASSERT_NO_ERROR(Buffer->commit()); in TEST()
56 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); in TEST()
58 ASSERT_NO_ERROR(fs::remove(File1.str())); in TEST()
66 ASSERT_NO_ERROR(Buffer2OrErr.getError()); in TEST()
75 ASSERT_NO_ERROR(fs::remove(File2.str())); in TEST()
83 ASSERT_NO_ERROR(BufferOrErr.getError()); in TEST()
89 ASSERT_NO_ERROR(Buffer->commit()); in TEST()
[all …]
DReplaceFileTest.cpp21 #define ASSERT_NO_ERROR(x) \ macro
58 ASSERT_NO_ERROR(fs::createUniqueDirectory( in TEST()
68 ASSERT_NO_ERROR(CreateFileWithContent(SourceFileName, "!!source!!")); in TEST()
69 ASSERT_NO_ERROR(CreateFileWithContent(TargetFileName, "!!target!!")); in TEST()
74 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST()
94 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST()
109 ASSERT_NO_ERROR(fs::remove(SourceFileName)); in TEST()
110 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
DProgramTest.cpp38 #define ASSERT_NO_ERROR(x) \ macro
141 ASSERT_NO_ERROR( in TEST_F()
159 ASSERT_NO_ERROR(fs::remove(Twine(LongPath))); in TEST_F()
160 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory))); in TEST_F()
325 ASSERT_NO_ERROR(fs::createUniqueDirectory("program-test", TestDirectory)); in TEST()
331 ASSERT_NO_ERROR(sys::writeFileWithEncoding(file_pathname.c_str(), utf8_text, in TEST()
334 ASSERT_NO_ERROR(fs::openFileForRead(file_pathname.c_str(), fd)); in TEST()
351 ASSERT_NO_ERROR(fs::remove(file_pathname.str())); in TEST()
352 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
/external/nos/test/system-test-harness/src/
Davb_tests.cc132 ASSERT_NO_ERROR(code, ""); in SetUp()
324 ASSERT_NO_ERROR(code, ""); in TEST_F()
330 ASSERT_NO_ERROR(code, ""); in TEST_F()
335 ASSERT_NO_ERROR(code, ""); in TEST_F()
366 ASSERT_NO_ERROR(service.CarrierLockTest(request, &response), ""); in TEST_F()
384 ASSERT_NO_ERROR(code, ""); in TEST_F()
394 ASSERT_NO_ERROR(code, ""); in TEST_F()
410 ASSERT_NO_ERROR(code, ""); in TEST_F()
417 ASSERT_NO_ERROR(SetDeviceLock(0x65), ""); in TEST_F()
418 ASSERT_NO_ERROR(SetDeviceLock(0x65), ""); in TEST_F()
[all …]
Dkeymaster-import-key-tests.cc124 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
136 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
148 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
160 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
172 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
184 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
198 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
211 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
224 ASSERT_NO_ERROR(service->ImportKey(request, &response), ""); in TEST_F()
245 ASSERT_NO_ERROR(service->ImportKey(request, &response), ss.str()); in TEST_F()
[all …]
Dkeymaster-provision-tests.cc85 ASSERT_NO_ERROR(service.ProvisionDeviceIds(request, &response), ""); in TEST_F()
98 ASSERT_NO_ERROR(service.ProvisionDeviceIds(request, &response), ""); in TEST_F()
102 ASSERT_NO_ERROR(service.ProvisionDeviceIds(request, &response), ""); in TEST_F()
118 ASSERT_NO_ERROR(service.ProvisionDeviceIds(request, &response), ""); in TEST_F()
135 ASSERT_NO_ERROR(service.ProvisionDeviceIds(request, &response), ""); in TEST_F()
152 ASSERT_NO_ERROR(service.ProvisionDeviceIds(request, &response), ""); in TEST_F()
167 ASSERT_NO_ERROR(service.ProvisionDeviceIds(request, &response), ""); in TEST_F()
806 ASSERT_NO_ERROR(service.ProvisionCertificates(request, &response), ""); in TEST_F()
Dnugget_core_tests.cc56 ASSERT_NO_ERROR(NuggetCoreTest::client->CallApp( in TEST_F()
63 ASSERT_NO_ERROR(NuggetCoreTest::client->CallApp( in TEST_F()
94 ASSERT_NO_ERROR(NuggetCoreTest::client->CallApp( in TEST_F()
113 ASSERT_NO_ERROR(NuggetCoreTest::client->CallApp( in TEST_F()
128 ASSERT_NO_ERROR(NuggetCoreTest::client->CallApp( in TEST_F()
145 ASSERT_NO_ERROR(NuggetCoreTest::client->CallApp( in TEST_F()
160 ASSERT_NO_ERROR(NuggetCoreTest::client->CallApp( in TEST_F()
Dweaver_tests.cc94 ASSERT_NO_ERROR(service.Write(request, &response), msg); in testWrite()
105 ASSERT_NO_ERROR(service.Read(request, &response), msg); in testRead()
121 ASSERT_NO_ERROR(service.EraseValue(request, &response), msg); in testEraseValue()
132 ASSERT_NO_ERROR(service.Read(request, &response), msg); in testReadWrongKey()
150 ASSERT_NO_ERROR(service.Read(request, &response), msg); in testReadThrottle()
180 ASSERT_NO_ERROR(service.GetConfig(request, &response), ""); in TEST_F()
Daes-cmac-tests.cc86 ASSERT_NO_ERROR(harness->SendOneofProto( in TEST_F()
92 ASSERT_NO_ERROR(harness->GetData(&msg, 4096 * BYTE_TIME), ""); in TEST_F()
Dkeymaster-import-wrapped-key-tests.cc238 ASSERT_NO_ERROR(service->ImportKey(importRequest, &importResponse), ""); in TEST_F()
261 ASSERT_NO_ERROR(service->ImportWrappedKey(request, &response), ""); in TEST_F()
Dcavptests.cc110 ASSERT_NO_ERROR(harness->SendOneofProto( in TEST_F()
116 ASSERT_NO_ERROR(harness->GetData(&msg, 4096 * BYTE_TIME), ""); in TEST_F()
/external/swiftshader/third_party/LLVM/unittests/Support/
DPath.cpp20 #define ASSERT_NO_ERROR(x) \ macro
129 ASSERT_NO_ERROR(fs::make_absolute(temp_store)); in TEST()
152 ASSERT_NO_ERROR( in SetUp()
164 ASSERT_NO_ERROR(fs::remove_all(TestDirectory.str(), removed)); in TearDown()
172 ASSERT_NO_ERROR( in TEST_F()
177 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists)); in TEST_F()
183 ASSERT_NO_ERROR(fs::unique_file("%%-%%-%%-%%.temp", FD2, TempPath2)); in TEST_F()
192 ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2), in TEST_F()
195 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists)); in TEST_F()
199 ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists)); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/BinaryFormat/
DTestFileMagic.cpp21 #define ASSERT_NO_ERROR(x) \ macro
39 ASSERT_NO_ERROR( in SetUp()
46 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown()
133 ASSERT_NO_ERROR(fs::remove(Twine(file_pathname))); in TEST_F()
/external/nos/test/system-test-harness/tools/
Dkeymaster_tools.cc40 ASSERT_NO_ERROR(service.SetRootOfTrust(request, &response), ""); in SetRootOfTrust()
57 ASSERT_NO_ERROR(service.SetBootState(request, &response), ""); in SetBootState()
Davb_tools.cc46 ASSERT_NO_ERROR(service.BootloaderDone(request, nullptr), ""); in BootloaderDone()
55 ASSERT_NO_ERROR(service.GetState(request, &response), ""); in GetState()
141 ASSERT_NO_ERROR(code, ""); in ResetProduction()
Dnugget_tools.h12 #define ASSERT_NO_ERROR(code, msg) \ macro
Davb_tools.h15 #define ASSERT_NO_ERROR(code, msg) \ macro