Home
last modified time | relevance | path

Searched refs:testing (Results 1 – 25 of 63) sorted by relevance

123

/test/dittosuite/test/include/
Dmock_syscall.h28 ON_CALL(*this, Access(::testing::_, ::testing::_)).WillByDefault(::testing::Return(0)); in MockSyscall()
29 ON_CALL(*this, Close(::testing::_)).WillByDefault(::testing::Return(0)); in MockSyscall()
30 ON_CALL(*this, CloseDir(::testing::_)).WillByDefault(::testing::Return(0)); in MockSyscall()
31 ON_CALL(*this, FAdvise(::testing::_, ::testing::_, ::testing::_, ::testing::_)) in MockSyscall()
32 .WillByDefault(::testing::Return(0)); in MockSyscall()
33 ON_CALL(*this, FAllocate(::testing::_, ::testing::_, ::testing::_, ::testing::_)) in MockSyscall()
34 .WillByDefault(::testing::Return(0)); in MockSyscall()
35 ON_CALL(*this, FTruncate(::testing::_, ::testing::_)).WillByDefault(::testing::Return(0)); in MockSyscall()
36 ON_CALL(*this, FStat(::testing::_, ::testing::_)) in MockSyscall()
37 .WillByDefault(::testing::Invoke([](int, struct stat64* buf) { in MockSyscall()
[all …]
Dinstruction_test.h32 class InstructionTest : public ::testing::Test {
48 class InstructionTestWithParam : public InstructionTest, public ::testing::WithParamInterface<T> {};
/test/vts-testcase/kernel/toolchain/
Dvts_kernel_toolchain.cpp29 class KernelVersionTest : public ::testing::Test {
52 ASSERT_THAT(version_, ::testing::Not(::testing::HasSubstr(needle))); in TEST_F()
58 ASSERT_THAT(version_, ::testing::HasSubstr(needle)); in TEST_F()
64 ASSERT_THAT(version_, ::testing::Not(::testing::HasSubstr(needle))); in TEST_F()
65 ASSERT_THAT(version_, ::testing::Not(::testing::HasSubstr("GNU Binutils"))); in TEST_F()
66 ASSERT_THAT(version_, ::testing::Not(::testing::HasSubstr("binutils"))); in TEST_F()
72 ASSERT_THAT(version_, ::testing::Not(::testing::HasSubstr(needle))); in TEST_F()
78 ASSERT_THAT(version_, ::testing::HasSubstr(needle)); in TEST_F()
97 ASSERT_THAT(version_, ::testing::HasSubstr("kleaf@")) in TEST_F()
/test/app_compat/csuite/tools/csuite_test/
Dcsuite_test_test.go28 func TestBpContainsTestHostPropsThrowsError(t *testing.T) {
40 func TestBpContainsManifestThrowsError(t *testing.T) {
52 func TestBpMissingNameThrowsError(t *testing.T) {
62 func TestBpMissingTemplatePathThrowsError(t *testing.T) {
72 func TestBpTemplatePathUnexpectedFileExtensionThrowsError(t *testing.T) {
83 func TestBpExtraTemplateUnexpectedFileExtensionThrowsError(t *testing.T) {
95 func TestBpValidExtraTemplateDoesNotThrowError(t *testing.T) {
105 func TestValidBpMissingPlanIncludeDoesNotThrowError(t *testing.T) {
114 func TestValidBpMissingPlanIncludeGeneratesPlanXmlWithoutPlaceholders(t *testing.T) {
129 func TestGeneratedTestPlanContainsPlanName(t *testing.T) {
[all …]
/test/vts-testcase/hal/treble/vintf/
DSingleManifestTest.h26 namespace testing {
31 public ::testing::WithParamInterface<
43 public ::testing::WithParamInterface<
49 const ::testing::TestParamInfo<ParamType>& info);
55 public ::testing::WithParamInterface<
63 public ::testing::WithParamInterface<
DSystemVendorTest.h25 namespace testing {
37 public ::testing::WithParamInterface<std::string /* fq instance name */> {
42 const ::testing::TestParamInfo<ParamType>& info);
DSystemVendorTest.cpp33 namespace testing { namespace
36 using ::testing::Combine;
37 using ::testing::Contains;
38 using ::testing::Values;
39 using ::testing::ValuesIn;
161 const ::testing::TestParamInfo<ParamType> &info) { in GetTestCaseSuffix()
DVtsTrebleVintfTestBase.h32 namespace testing {
39 class VtsTrebleVintfTestBase : public ::testing::Test {
DVtsNoHidl.cpp28 namespace testing { namespace
35 class VintfNoHidlTest : public ::testing::Test {};
DDeviceManifestTest.cpp26 using testing::Combine;
27 using testing::Values;
28 using testing::ValuesIn;
32 namespace testing { namespace
Dmain.cpp23 ::testing::InitGoogleTest(&argc, argv); in main()
DDeviceMatrixTest.h26 namespace testing {
DDeviceManifestTest.h26 namespace testing {
/test/dittosuite/test/
Dlogger_test.cpp57 class DittoLoggerStreamUpdate : public testing::TestWithParam<dittosuite::LogStream> {};
69 testing::Values(LogStream::kStdout, LogStream::kLogcat));
71 class DittoLoggerLevelUpdate : public testing::TestWithParam<dittosuite::LogLevel> {};
83 testing::Values(LogLevel::kInfo, LogLevel::kWarning, LogLevel::kError,
87 : public testing::TestWithParam<std::pair<std::string_view, dittosuite::LogLevel>> {};
99 testing::Values(
108 testing::Values(std::make_pair("6", LogLevel::kInfo),
Dresult.cpp21 class DittoResult : public testing::TestWithParam<std::tuple<ResultsOutput, std::string_view>> {};
29 testing::Values(std::make_tuple(ResultsOutput::kReport, "report"),
35 testing::Values(std::make_tuple(ResultsOutput::kReport, "0"),
41 testing::Values(std::make_tuple(ResultsOutput::kReport, "UNKNOWN"),
Dexample_test.cpp73 class ExampleTest : public testing::TestWithParam<std::string> {};
90 testing::ExitedWithCode(0), ""); in TEST_P()
94 INSTANTIATE_TEST_SUITE_P(DittoFile, ExampleTest, testing::ValuesIn(ditto_files_paths()));
Dclose_file_test.cpp22 using ::testing::_;
23 using ::testing::Return;
/test/vts-testcase/kernel/api/tun/
Dvts_kernel_tun_test.cpp41 class VtsKernelTunTest : public ::testing::TestWithParam<short> {
90 ::testing::ValuesIn(kTunModes));
93 ::testing::InitGoogleTest(&argc, argv); in main()
/test/vts-testcase/hal/treble/vintf/libvts_vintf_test_common/
Dcommon.cpp20 namespace android::vintf::testing { namespace
59 auto it = android::vintf::testing::kApiLevel2FcmMap.find(api_level); in GetFcmVersionFromApiLevel()
60 if (it == android::vintf::testing::kApiLevel2FcmMap.end()) { in GetFcmVersionFromApiLevel()
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/testing/
DCorrespondencesTest.java17 package com.android.csuite.testing;
19 import static com.android.csuite.testing.Correspondences.instanceOf;
DMoreAssertsTest.java17 package com.android.csuite.testing;
19 import static com.android.csuite.testing.MoreAsserts.assertThrows;
/test/vts/vts_hal_hidl_target/
DVtsHalHidlTargetTestEnvBase.h26 namespace testing {
45 class VtsHalHidlTargetTestEnvBase : public ::testing::Environment {
DVtsHalHidlTargetTestBase.h30 namespace testing {
35 class VtsHalHidlTargetTestBase : public ::testing::Test {
DVtsCoreUtil.h19 namespace testing {
/test/vts-testcase/hal/treble/vintf/libvts_vintf_test_common/include/libvts_vintf_test_common/
Dcommon.h25 namespace android::vintf::testing {

123