Home
last modified time | relevance | path

Searched refs:FileTest (Results 1 – 25 of 100) sorted by relevance

1234

/external/rust/crates/quiche/deps/boringssl/src/crypto/test/
Dfile_test.cc34 FileTest::FileTest(std::unique_ptr<FileTest::LineReader> reader, in FileTest() function in FileTest
41 FileTest::~FileTest() {} in ~FileTest()
81 FileTest::ReadResult FileTest::ReadNext() { in ReadNext()
230 void FileTest::PrintLine(const char *format, ...) { in PrintLine()
241 const std::string &FileTest::GetType() { in GetType()
246 const std::string &FileTest::GetParameter() { in GetParameter()
251 bool FileTest::HasAttribute(const std::string &key) { in HasAttribute()
256 bool FileTest::GetAttribute(std::string *out_value, const std::string &key) { in GetAttribute()
267 const std::string &FileTest::GetAttributeOrDie(const std::string &key) { in GetAttributeOrDie()
274 bool FileTest::HasInstruction(const std::string &key) { in HasInstruction()
[all …]
Dfile_test_gtest.cc31 class StringLineReader : public FileTest::LineReader {
36 FileTest::ReadResult ReadLine(char *out, size_t len) override { in ReadLine()
39 return FileTest::kReadEOF; in ReadLine()
51 return FileTest::kReadError; in ReadLine()
57 return FileTest::kReadSuccess; in ReadLine()
68 void FileTestGTest(const char *path, std::function<void(FileTest *)> run_test) { in FileTestGTest()
71 FileTest t(std::move(reader), nullptr, false); in FileTestGTest()
75 case FileTest::kReadError: in FileTestGTest()
78 case FileTest::kReadEOF: in FileTestGTest()
80 case FileTest::kReadSuccess: in FileTestGTest()
Dfile_test.h87 class FileTest;
88 typedef bool (*FileTestFunc)(FileTest *t, void *arg);
90 class FileTest {
123 explicit FileTest(std::unique_ptr<LineReader> reader,
126 ~FileTest();
245 FileTest(const FileTest &) = delete;
246 FileTest &operator=(const FileTest &) = delete;
263 int FileTestMain(const FileTest::Options &opts);
267 void FileTestGTest(const char *path, std::function<void(FileTest *)> run_test);
Dwycheproof_util.h26 class FileTest; variable
45 bool GetWycheproofResult(FileTest *t, WycheproofResult *out);
49 const EVP_MD *GetWycheproofDigest(FileTest *t, const char *key,
54 bssl::UniquePtr<EC_GROUP> GetWycheproofCurve(FileTest *t, const char *key,
59 bssl::UniquePtr<BIGNUM> GetWycheproofBIGNUM(FileTest *t, const char *key,
Dwycheproof_util.cc49 bool GetWycheproofResult(FileTest *t, WycheproofResult *out) { in GetWycheproofResult()
81 const EVP_MD *GetWycheproofDigest(FileTest *t, const char *key, in GetWycheproofDigest()
108 bssl::UniquePtr<EC_GROUP> GetWycheproofCurve(FileTest *t, const char *key, in GetWycheproofCurve()
132 bssl::UniquePtr<BIGNUM> GetWycheproofBIGNUM(FileTest *t, const char *key, in GetWycheproofBIGNUM()
/external/boringssl/src/crypto/test/
Dfile_test.cc34 FileTest::FileTest(std::unique_ptr<FileTest::LineReader> reader, in FileTest() function in FileTest
41 FileTest::~FileTest() {} in ~FileTest()
81 FileTest::ReadResult FileTest::ReadNext() { in ReadNext()
229 void FileTest::PrintLine(const char *format, ...) { in PrintLine()
240 const std::string &FileTest::GetType() { in GetType()
245 const std::string &FileTest::GetParameter() { in GetParameter()
250 bool FileTest::HasAttribute(const std::string &key) { in HasAttribute()
255 bool FileTest::GetAttribute(std::string *out_value, const std::string &key) { in GetAttribute()
266 const std::string &FileTest::GetAttributeOrDie(const std::string &key) { in GetAttributeOrDie()
273 bool FileTest::HasInstruction(const std::string &key) { in HasInstruction()
[all …]
Dfile_test_gtest.cc31 class StringLineReader : public FileTest::LineReader {
36 FileTest::ReadResult ReadLine(char *out, size_t len) override { in ReadLine()
39 return FileTest::kReadEOF; in ReadLine()
51 return FileTest::kReadError; in ReadLine()
57 return FileTest::kReadSuccess; in ReadLine()
68 void FileTestGTest(const char *path, std::function<void(FileTest *)> run_test) { in FileTestGTest()
71 FileTest t(std::move(reader), nullptr, false); in FileTestGTest()
75 case FileTest::kReadError: in FileTestGTest()
78 case FileTest::kReadEOF: in FileTestGTest()
80 case FileTest::kReadSuccess: in FileTestGTest()
Dfile_test.h87 class FileTest;
88 typedef bool (*FileTestFunc)(FileTest *t, void *arg);
90 class FileTest {
123 explicit FileTest(std::unique_ptr<LineReader> reader,
126 ~FileTest();
248 FileTest(const FileTest &) = delete;
249 FileTest &operator=(const FileTest &) = delete;
266 int FileTestMain(const FileTest::Options &opts);
270 void FileTestGTest(const char *path, std::function<void(FileTest *)> run_test);
Dwycheproof_util.h26 class FileTest; variable
45 bool GetWycheproofResult(FileTest *t, WycheproofResult *out);
49 const EVP_MD *GetWycheproofDigest(FileTest *t, const char *key,
54 bssl::UniquePtr<EC_GROUP> GetWycheproofCurve(FileTest *t, const char *key,
59 bssl::UniquePtr<BIGNUM> GetWycheproofBIGNUM(FileTest *t, const char *key,
Dwycheproof_util.cc49 bool GetWycheproofResult(FileTest *t, WycheproofResult *out) { in GetWycheproofResult()
81 const EVP_MD *GetWycheproofDigest(FileTest *t, const char *key, in GetWycheproofDigest()
108 bssl::UniquePtr<EC_GROUP> GetWycheproofCurve(FileTest *t, const char *key, in GetWycheproofCurve()
132 bssl::UniquePtr<BIGNUM> GetWycheproofBIGNUM(FileTest *t, const char *key, in GetWycheproofBIGNUM()
/external/fmtlib/test/
Dos-test.cc322 TEST(FileTest, DefaultCtor) { in TEST() argument
327 TEST(FileTest, OpenBufferedFileInCtor) { in TEST() argument
335 TEST(FileTest, OpenBufferedFileError) { in TEST() argument
340 TEST(FileTest, MoveCtor) { in TEST() argument
349 TEST(FileTest, MoveAssignment) { in TEST() argument
359 TEST(FileTest, MoveAssignmentClosesFile) { in TEST() argument
373 TEST(FileTest, MoveFromTemporaryInCtor) { in TEST() argument
379 TEST(FileTest, MoveFromTemporaryInAssignment) { in TEST() argument
386 TEST(FileTest, MoveFromTemporaryInAssignmentClosesFile) { in TEST() argument
394 TEST(FileTest, CloseFileInDtor) { in TEST() argument
[all …]
Dposix-mock-test.cc219 TEST(FileTest, OpenRetry) { in TEST() argument
230 TEST(FileTest, CloseNoRetryInDtor) { in TEST() argument
247 TEST(FileTest, CloseNoRetry) { in TEST() argument
256 TEST(FileTest, Size) { in TEST() argument
275 TEST(FileTest, MaxSize) { in TEST() argument
284 TEST(FileTest, ReadRetry) { in TEST() argument
297 TEST(FileTest, WriteRetry) { in TEST() argument
315 TEST(FileTest, ConvertReadCount) { in TEST() argument
328 TEST(FileTest, ConvertWriteCount) { in TEST() argument
342 TEST(FileTest, DupNoRetry) { in TEST() argument
[all …]
/external/libbrillo/brillo/files/
Dfile_util_test.cc50 void FileTest::SetUpTestCase() { in SetUpTestCase()
54 FileTest::FileTest() { in FileTest() function in brillo::FileTest
71 bool FileTest::SetupSubdir() { in SetupSubdir()
85 bool FileTest::SetupSymlinks() { in SetupSymlinks()
101 bool FileTest::WriteFile(const std::string& contents) { in WriteFile()
117 void FileTest::ExpectFileContains(const std::string& contents) { in ExpectFileContains()
124 void FileTest::ExpectPermissions(base::FilePath path, int permissions) { in ExpectPermissions()
132 base::FilePath FileTest::GetTempName() { in GetTempName()
136 constexpr char FileTest::kFileName[];
137 constexpr char FileTest::kSubdirName[];
[all …]
/external/libchrome/base/files/
Dfile_unittest.cc21 TEST(FileTest, Create) { in TEST() argument
110 TEST(FileTest, SelfSwap) { in TEST() argument
120 TEST(FileTest, Async) { in TEST() argument
138 TEST(FileTest, DeleteOpenFile) { in TEST() argument
165 TEST(FileTest, ReadWrite) { in TEST() argument
241 TEST(FileTest, GetLastFileError) { in TEST() argument
260 TEST(FileTest, Append) { in TEST() argument
312 TEST(FileTest, Length) { in TEST() argument
368 TEST(FileTest, TouchGetInfo) { argument
370 TEST(FileTest, DISABLED_TouchGetInfo) {
[all …]
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/
Dcavp_ecdsa2_siggen_test.cc35 static bool TestECDSA2SigGenImpl(FileTest *t, bool is_component) { in TestECDSA2SigGenImpl()
92 static bool TestECDSA2SigGen(FileTest *t, void *arg) { in TestECDSA2SigGen()
96 static bool TestECDSA2SigGenComponent(FileTest *t, void *arg) { in TestECDSA2SigGenComponent()
107 static bool (*test_func)(FileTest *, void *); in cavp_ecdsa2_siggen_test_main()
117 FileTest::Options opts; in cavp_ecdsa2_siggen_test_main()
Dcavp_test_util.h49 bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *attribute);
51 int GetECGroupNIDFromInstruction(FileTest *t, const char **out_str = nullptr);
53 const EVP_MD *GetDigestFromInstruction(FileTest *t);
Dcavp_aes_gcm_test.cc49 static bool TestAEADEncrypt(FileTest *t, void *arg) { in TestAEADEncrypt()
87 static bool TestAEADDecrypt(FileTest *t, void *arg) { in TestAEADDecrypt()
142 bool (*test_fn)(FileTest * t, void *arg); in cavp_aes_gcm_test_main()
159 FileTest::Options opts; in cavp_aes_gcm_test_main()
Dcavp_ecdsa2_pkv_test.cc30 static bool TestECDSA2PKV(FileTest *t, void *arg) { in TestECDSA2PKV()
60 FileTest::Options opts; in cavp_ecdsa2_pkv_test_main()
/external/boringssl/src/util/fipstools/cavp/
Dcavp_ecdsa2_siggen_test.cc35 static bool TestECDSA2SigGenImpl(FileTest *t, bool is_component) { in TestECDSA2SigGenImpl()
92 static bool TestECDSA2SigGen(FileTest *t, void *arg) { in TestECDSA2SigGen()
96 static bool TestECDSA2SigGenComponent(FileTest *t, void *arg) { in TestECDSA2SigGenComponent()
107 static bool (*test_func)(FileTest *, void *); in cavp_ecdsa2_siggen_test_main()
117 FileTest::Options opts; in cavp_ecdsa2_siggen_test_main()
Dcavp_test_util.h49 bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *attribute);
51 int GetECGroupNIDFromInstruction(FileTest *t, const char **out_str = nullptr);
53 const EVP_MD *GetDigestFromInstruction(FileTest *t);
Dcavp_aes_gcm_test.cc49 static bool TestAEADEncrypt(FileTest *t, void *arg) { in TestAEADEncrypt()
87 static bool TestAEADDecrypt(FileTest *t, void *arg) { in TestAEADDecrypt()
142 bool (*test_fn)(FileTest * t, void *arg); in cavp_aes_gcm_test_main()
159 FileTest::Options opts; in cavp_aes_gcm_test_main()
Dcavp_ecdsa2_pkv_test.cc30 static bool TestECDSA2PKV(FileTest *t, void *arg) { in TestECDSA2PKV()
60 FileTest::Options opts; in cavp_ecdsa2_pkv_test_main()
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/
Devp_test.cc90 static const EVP_MD *GetDigest(FileTest *t, const std::string &name) { in OPENSSL_MSVC_PRAGMA()
108 static int GetKeyType(FileTest *t, const std::string &name) { in GetKeyType()
128 static int GetRSAPadding(FileTest *t, int *out, const std::string &name) { in GetRSAPadding()
147 static bool ImportKey(FileTest *t, KeyMap *key_map, in ImportKey()
250 static bool SetupContext(FileTest *t, KeyMap *key_map, EVP_PKEY_CTX *ctx) { in SetupContext()
304 static bool TestDerive(FileTest *t, KeyMap *key_map, EVP_PKEY *key) { in TestDerive()
361 static bool TestEVP(FileTest *t, KeyMap *key_map) { in TestEVP()
558 FileTestGTest("crypto/evp/evp_tests.txt", [&](FileTest *t) { in TEST()
572 FileTestGTest(path, [](FileTest *t) { in RunWycheproofVerifyTest()
704 [](FileTest *t) { in TEST()
[all …]
/external/boringssl/src/crypto/evp/
Devp_test.cc90 static const EVP_MD *GetDigest(FileTest *t, const std::string &name) { in OPENSSL_MSVC_PRAGMA()
108 static int GetKeyType(FileTest *t, const std::string &name) { in GetKeyType()
128 static int GetRSAPadding(FileTest *t, int *out, const std::string &name) { in GetRSAPadding()
147 static bool ImportKey(FileTest *t, KeyMap *key_map, in ImportKey()
250 static bool SetupContext(FileTest *t, KeyMap *key_map, EVP_PKEY_CTX *ctx) { in SetupContext()
304 static bool TestDerive(FileTest *t, KeyMap *key_map, EVP_PKEY *key) { in TestDerive()
361 static bool TestEVP(FileTest *t, KeyMap *key_map) { in TestEVP()
558 FileTestGTest("crypto/evp/evp_tests.txt", [&](FileTest *t) { in TEST()
572 FileTestGTest(path, [](FileTest *t) { in RunWycheproofVerifyTest()
704 [](FileTest *t) { in TEST()
[all …]
/external/libchrome/mojo/public/cpp/base/
Dfile_unittest.cc14 TEST(FileTest, File) { in TEST() argument
39 TEST(FileTest, AsyncFile) { in TEST() argument
58 TEST(FileTest, InvalidFile) { in TEST() argument

1234