/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
H A D | inspector_server.cpp | 74 class ServerTest : public testing::Test { 96 EXPECT_CALL(server, CallMock(g_sessionId, "Debugger.resumed", testing::_)).Times(1); in TEST_F() 106 EXPECT_CALL(server, CallMock(g_sessionId, "Debugger.scriptParsed", testing::_)) in TEST_F() 107 .WillOnce([&](testing::Unused, testing::Unused, auto s) { in TEST_F() 124 EXPECT_CALL(server1, OnCallMock("Debugger.enable", testing::_)).WillOnce([&](testing::Unused, auto handler) { in TEST_F() 146 EXPECT_CALL(server, OnCallMock("Debugger.pause", testing::_)).WillOnce(g_simpleHandler); in TEST_F() 159 EXPECT_CALL(server, OnCallMock("Debugger.removeBreakpoint", testing::_)) in TEST_F() 160 .WillOnce([&](testing in TEST_F() [all...] |
H A D | json_object_matcher.h | 72 testing::Matcher<PropertyType> value_matcher; 89 class HasJsonPropertyMatcher : public testing::MatcherInterface<const JsonObject &> { 93 HasJsonPropertyMatcher(const char *key, testing::Matcher<PropertyType> value_matcher) in HasJsonPropertyMatcher() 110 bool MatchAndExplain(const JsonObject &object, testing::MatchResultListener *os) const override 128 class JsonObjectMatcher : public testing::MatcherInterface<const JsonObject &> { 144 bool MatchAndExplain(const JsonObject &object, testing::MatchResultListener *os) const override 181 return testing::Matcher<const JsonObject &>(new JsonObjectMatcher<PropertyType...>(property...)); in JsonProperties() 185 auto JsonElements(testing::Matcher<PropertyType>... matcher) in JsonElements() 187 return testing::ElementsAre( in JsonElements() 192 auto JsonElementsAreArray(const Container<testing [all...] |
H A D | object_repository.cpp | 42 class ObjectRepositoryTest : public testing::Test { 114 JsonProperty<JsonObject::BoolT> {"writable", testing::_}, in GetFrameObjectProperties() 115 JsonProperty<JsonObject::BoolT> {"configurable", testing::_}, in GetFrameObjectProperties() 116 JsonProperty<JsonObject::BoolT> {"enumerable", testing::_}); in GetFrameObjectProperties() 125 ASSERT_THAT(ToJson(clsObj), GetObjectProperties(testing::_, testing::_, "1")); in TEST_F() 130 JsonProperty<JsonObject::JsonObjPointer> {"value", testing::IsNull()})); in TEST_F() 149 ASSERT_THAT(ToJson(doubObj), GetPrimitiveProperties<JsonObject::NumT>("number", testing::DoubleEq(F64_VALUE))); in TEST_F() 175 GetFrameObjectProperties("a", testing::Pointee(GetPrimitiveProperties<JsonObject::NumT>("number", 56U)))); in TEST_F() 177 GetFrameObjectProperties("ref", testing in TEST_F() [all...] |
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | logger_test.cpp | 31 class LoggerTest : public testing::Test { 41 HWTEST_F(LoggerTest, Initialization, testing::ext::TestSize.Level0) in HWTEST_F() 45 testing::FLAGS_gtest_death_test_style = "fast"; in HWTEST_F() 46 testing::internal::CaptureStderr(); in HWTEST_F() 52 std::string err = testing::internal::GetCapturedStderr(); in HWTEST_F() 60 testing::internal::CaptureStderr(); in HWTEST_F() 66 err = testing::internal::GetCapturedStderr(); in HWTEST_F() 82 testing::internal::CaptureStderr(); in HWTEST_F() 88 err = testing::internal::GetCapturedStderr(); in HWTEST_F() 94 HWTEST_F(LoggerTest, LoggingExceptionsFatal, testing [all...] |
H A D | pandargs_test.cpp | 51 HWTEST(libpandargs, TestAdd, testing::ext::TestSize.Level0) in HWTEST() 75 HWTEST(libpandargs, TestIsArgSet, testing::ext::TestSize.Level0) in HWTEST() 102 HWTEST(libpandargs, TestConsistent, testing::ext::TestSize.Level0) in HWTEST() 150 HWTEST(libpandargs, TestDuplicate, testing::ext::TestSize.Level0) in HWTEST() 159 HWTEST(libpandargs, TestTail, testing::ext::TestSize.Level0) in HWTEST() 179 HWTEST(libpandargs, TestString, testing::ext::TestSize.Level0) in HWTEST() 196 HWTEST(libpandargs, TestRegular, testing::ext::TestSize.Level0) in HWTEST() 223 HWTEST(libpandargs, TestAllBoolean, testing::ext::TestSize.Level0) in HWTEST() 246 HWTEST(libpandargs, TestWrongBoolean, testing::ext::TestSize.Level0) in HWTEST() 257 HWTEST(libpandargs, TestBooleanEnd, testing [all...] |
H A D | type_converter_tests.cpp | 30 HWTEST(TimeTest, RandomTimeConverterTest, testing::ext::TestSize.Level0) in HWTEST() 55 HWTEST(TimeTest, RoundTimeConverterTest, testing::ext::TestSize.Level0) in HWTEST() 65 HWTEST(MemoryTest, RandomMemoryConverterTest, testing::ext::TestSize.Level0) in HWTEST() 87 HWTEST(MemoryTest, RoundMemoryConverterTest, testing::ext::TestSize.Level0) in HWTEST() 94 HWTEST(TypeConverterTest, OperatorEqualTest, testing::ext::TestSize.Level0) in HWTEST() 105 HWTEST(TypeConverterTest, ValueConverterTest, testing::ext::TestSize.Level0) in HWTEST() 113 HWTEST(TypeConverterTest, DumpTest, testing::ext::TestSize.Level0) in HWTEST()
|
H A D | math_helpers_test.cpp | 23 HWTEST(MathHelpers, GetIntLog2, testing::ext::TestSize.Level0) in HWTEST() 40 HWTEST(MathHelpers, IsPowerOfTwo, testing::ext::TestSize.Level0) in HWTEST() 54 HWTEST(MathHelpers, GetPowerOfTwoValue32, testing::ext::TestSize.Level0) in HWTEST() 73 HWTEST(MathHelpers, MinAndMaxTest, testing::ext::TestSize.Level0) in HWTEST()
|
H A D | mem_space_test.cpp | 22 HWTEST(MemSpaceTest, ToSpaceType, testing::ext::TestSize.Level0) in HWTEST() 28 HWTEST(MemSpaceTest, IsHeapSpace, testing::ext::TestSize.Level0) in HWTEST() 33 HWTEST(MemSpaceTest, SpaceTypeToString, testing::ext::TestSize.Level0) in HWTEST()
|
H A D | arch_test.cpp | 23 HWTEST(ArchTest, GetCallerRegsMaskTest, testing::ext::TestSize.Level0) in HWTEST() 31 HWTEST(ArchTest, GetCalleeRegsMaskTest, testing::ext::TestSize.Level0) in HWTEST() 39 HWTEST(ArchTest, GetCalleeRegTest, testing::ext::TestSize.Level0) in HWTEST()
|
H A D | arena_allocator_test.cpp | 38 class ArenaAllocatorTest : public testing::Test { 172 HWTEST_F(ArenaAllocatorTest, AllocateTest, testing::ext::TestSize.Level0) in HWTEST_F() 199 HWTEST_F(ArenaAllocatorTest, AllocateVectorTest, testing::ext::TestSize.Level0) in HWTEST_F() 220 HWTEST_F(ArenaAllocatorTest, AllocateVectorWithComplexTypeTest, testing::ext::TestSize.Level0) in HWTEST_F() 296 HWTEST_F(ArenaAllocatorTest, AllocateDequeWithComplexTypeTest, testing::ext::TestSize.Level0) in HWTEST_F() 373 HWTEST_F(ArenaAllocatorTest, LongRandomTest, testing::ext::TestSize.Level0) in HWTEST_F() 441 HWTEST_F(ArenaAllocatorTest, LogAlignmentSmallSizesTest, testing::ext::TestSize.Level0) in HWTEST_F() 460 HWTEST_F(ArenaAllocatorTest, LogAlignmentBigSizeTest, testing::ext::TestSize.Level0) in HWTEST_F() 476 HWTEST_F(ArenaAllocatorTest, ArrayUINT16AlignmentTest, testing::ext::TestSize.Level0) in HWTEST_F() 481 HWTEST_F(ArenaAllocatorTest, ArrayUINT32AlignmentTest, testing [all...] |
H A D | unix_thread_test.cpp | 21 class UnixThreadTest : public testing::Test {}; 23 HWTEST_F(UnixThreadTest, ThreadGetStackInfoTest, testing::ext::TestSize.Level0) in HWTEST_F()
|
H A D | base_mem_stats_test.cpp | 24 class BaseMemStatsTest : public testing::Test { 39 HWTEST_F(BaseMemStatsTest, CodeStatistic, testing::ext::TestSize.Level0) in HWTEST_F() 54 HWTEST_F(BaseMemStatsTest, AllocationsOverAllocator, testing::ext::TestSize.Level0) in HWTEST_F() 79 HWTEST_F(BaseMemStatsTest, HeapAllocateTest, testing::ext::TestSize.Level0) in HWTEST_F()
|
/arkcompiler/ets_runtime/compiler_service/test/unittest/aotcompilerproxy_unit/ |
H A D | aotcompilerproxy_unit.cpp | 31 using namespace testing::ext; 92 class AotCompilerProxyTest : public testing::Test { 178 EXPECT_CALL(*mockStub_, CommandAOTCompiler(testing::_, testing::_)). in HWTEST_F() 179 Times(1).WillOnce(testing::Return(ERR_AOT_COMPILER_CONNECT_FAILED)); in HWTEST_F() 198 EXPECT_CALL(*mockStub_, CommandAOTCompiler(testing::_, testing::_)). in HWTEST_F() 199 Times(1).WillOnce(testing::Invoke(func)); in HWTEST_F() 219 EXPECT_CALL(*mockStub_, CommandAOTCompiler(testing::_, testing in HWTEST_F() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | logger_test.cpp | 37 testing::FLAGS_gtest_death_test_style = "threadsafe"; in DEATH_TEST() 38 testing::internal::CaptureStderr(); in DEATH_TEST() 44 std::string err = testing::internal::GetCapturedStderr(); in DEATH_TEST() 52 testing::internal::CaptureStderr(); in DEATH_TEST() 58 err = testing::internal::GetCapturedStderr(); in DEATH_TEST() 74 testing::internal::CaptureStderr(); in DEATH_TEST() 80 err = testing::internal::GetCapturedStderr(); in DEATH_TEST() 88 testing::FLAGS_gtest_death_test_style = "threadsafe"; in DEATH_TEST() 105 testing::internal::CaptureStderr(); in DEATH_TEST() 111 std::string err = testing in DEATH_TEST() [all...] |
/arkcompiler/ets_runtime/compiler_service/test/unittest/aotcompilerstub_unit/ |
H A D | aotcompilerstub_unit.cpp | 31 using namespace testing::ext; 55 class AotCompilerStubTest : public testing::Test { 207 EXPECT_CALL(*aotCompilerStub_, AotCompiler(testing::_, testing::_)). in HWTEST_F() 208 Times(1).WillOnce(testing::Return(ERR_OK)); in HWTEST_F() 226 EXPECT_CALL(*aotCompilerStub_, AotCompiler(testing::_, testing::_)). in HWTEST_F() 227 Times(1).WillOnce(testing::Return(ERR_FAIL)); in HWTEST_F() 245 EXPECT_CALL(*aotCompilerStub_, GetAOTVersion(testing::_)). in HWTEST_F() 246 Times(1).WillOnce(testing in HWTEST_F() [all...] |
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | gc_log_test.cpp | 38 class GCTestLog : public testing::TestWithParam<const char *> { 99 testing::internal::CaptureStderr(); in CounterLogTest() 102 log_ = testing::internal::GetCapturedStderr(); in CounterLogTest() 123 testing::internal::CaptureStderr(); in FullLogTest() 127 log_ = testing::internal::GetCapturedStderr(); in FullLogTest() 130 testing::internal::CaptureStderr(); in FullLogTest() 134 log_ = testing::internal::GetCapturedStderr(); in FullLogTest() 137 testing::internal::CaptureStderr(); in FullLogTest() 141 log_ = testing::internal::GetCapturedStderr(); in FullLogTest() 192 testing [all...] |
H A D | explicit_gc_test.cpp | 41 class ExplicitGC : public testing::Test { 103 testing::internal::CaptureStderr(); in TEST_F() 107 log = testing::internal::GetCapturedStderr(); in TEST_F() 119 testing::internal::CaptureStderr(); in TEST_F() 123 log = testing::internal::GetCapturedStderr(); in TEST_F() 129 testing::internal::CaptureStderr(); in TEST_F() 133 log = testing::internal::GetCapturedStderr(); in TEST_F() 157 testing::internal::CaptureStderr(); in TEST_F() 161 log = testing::internal::GetCapturedStderr(); in TEST_F() 185 testing in TEST_F() [all...] |
H A D | thread_test.cpp | 22 class ThreadTest : public testing::Test { 105 testing::FLAGS_gtest_death_test_style = "threadsafe"; in DEATH_TEST_F() 116 testing::FLAGS_gtest_death_test_style = "threadsafe"; in DEATH_TEST_F() 131 testing::FLAGS_gtest_death_test_style = "threadsafe"; in DEATH_TEST_F() 143 testing::FLAGS_gtest_death_test_style = "threadsafe"; in DEATH_TEST_F() 156 testing::FLAGS_gtest_death_test_style = "threadsafe"; in DEATH_TEST_F()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/ |
H A D | pending_exception_test.cpp | 22 class PendingEtsExceptionTest : public testing::TestWithParam<int> { 54 testing::FLAGS_gtest_death_test_style = "threadsafe"; in DEATH_TEST_P() 59 testing::ExitedWithCode(1), ""); in DEATH_TEST_P() 62 INSTANTIATE_TEST_SUITE_P(MovingGcExceptionTests, PendingEtsExceptionTest, ::testing::Range(0, 8));
|
/arkcompiler/runtime_core/libpandafile/tests/ |
H A D | file_items_test.cpp | 29 HWTEST(LineNumberProgramItem, EmitSpecialOpcode, testing::ext::TestSize.Level0) in HWTEST() 55 HWTEST(LineNumberProgramItem, LanguageFromAndToString, testing::ext::TestSize.Level0) in HWTEST() 62 HWTEST(LineNumberProgramItem, GetStringClassDescriptor, testing::ext::TestSize.Level0) in HWTEST() 68 HWTEST(LineNumberProgramItem, IsDynamicLanguageTest, testing::ext::TestSize.Level0) in HWTEST() 74 HWTEST(LineNumberProgramItem, ItemTypeToStringPart1, testing::ext::TestSize.Level0) in HWTEST() 115 HWTEST(LineNumberProgramItem, ItemTypeToStringPart2, testing::ext::TestSize.Level0) in HWTEST() 157 HWTEST(LineNumberProgramItem, ItemTypeToStringPart3, testing::ext::TestSize.Level0) in HWTEST() 202 HWTEST(LineNumberProgramItem, GetULeb128EncodedSizeTest, testing::ext::TestSize.Level0) in HWTEST()
|
H A D | file_test.cpp | 98 HWTEST(File, GetClassByName, testing::ext::TestSize.Level0) in HWTEST() 125 HWTEST(File, OpenPandaFile, testing::ext::TestSize.Level0) in HWTEST() 132 const char *filename2 = "classses2.abc"; // just for testing. in HWTEST() 144 const char *filename3 = "classses3.abc"; // just for testing. in HWTEST() 160 HWTEST(File, OpenPandaFileFromMemory, testing::ext::TestSize.Level0) in HWTEST() 177 HWTEST(File, OpenPandaFileFromSecureMemory, testing::ext::TestSize.Level0) in HWTEST() 186 HWTEST(File, OpenPandaFileFromZipNameAnonMem, testing::ext::TestSize.Level0) in HWTEST() 205 HWTEST(File, OpenPandaFileOrZip, testing::ext::TestSize.Level0) in HWTEST() 212 const char *filename2 = "classes2.abc"; // just for testing. in HWTEST() 230 HWTEST(File, OpenPandaFileFromZipErrorHandler, testing [all...] |
/arkcompiler/toolchain/websocket/test/ |
H A D | frame_builder_test.cpp | 22 class FrameBuilderTest : public testing::Test { 42 HWTEST_F(FrameBuilderTest, TestNoPayload, testing::ext::TestSize.Level0) in HWTEST_F() 55 HWTEST_F(FrameBuilderTest, TestShortPayload, testing::ext::TestSize.Level0) in HWTEST_F() 74 HWTEST_F(FrameBuilderTest, TestLongPayload, testing::ext::TestSize.Level0) in HWTEST_F() 96 HWTEST_F(FrameBuilderTest, TestLongLongPayload, testing::ext::TestSize.Level0) in HWTEST_F() 119 HWTEST_F(FrameBuilderTest, TestAppendPayload, testing::ext::TestSize.Level0) in HWTEST_F() 140 HWTEST_F(FrameBuilderTest, TestClientNoPayload, testing::ext::TestSize.Level0) in HWTEST_F() 153 HWTEST_F(FrameBuilderTest, TestClientMasking, testing::ext::TestSize.Level0) in HWTEST_F()
|
H A D | http_decoder_test.cpp | 24 class HttpDecoderTest : public testing::Test { 66 HWTEST_F(HttpDecoderTest, TestRequestDecode, testing::ext::TestSize.Level0) in HWTEST_F() 78 HWTEST_F(HttpDecoderTest, TestAbnormalRequestDecode, testing::ext::TestSize.Level0) in HWTEST_F() 90 HWTEST_F(HttpDecoderTest, TestResponseDecode, testing::ext::TestSize.Level0) in HWTEST_F() 103 HWTEST_F(HttpDecoderTest, TestAbnormalResponseDecode, testing::ext::TestSize.Level0) in HWTEST_F()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
H A D | stack_trace_test.cpp | 25 class StackTraceTest : public testing::Test { 68 testing::internal::CaptureStdout(); in TEST_F() 72 auto captured = testing::internal::GetCapturedStdout(); in TEST_F() 99 testing::internal::CaptureStdout(); in TEST_F() 105 auto captured = testing::internal::GetCapturedStdout(); in TEST_F()
|
H A D | array_native_test_3.cpp | 32 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST_F() 39 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST_F() 57 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST_F() 73 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST_F() 81 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST_F() 95 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST_F() 131 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST_F() 167 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST_F()
|