Home
last modified time | relevance | path

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

12345678910>>...28

/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils.h37 return ::testing::ExplainMatchResult(
38 ::testing::AllOf(
39 ::testing::Property("rcode", &DnsQueryEvent::rcode,
40 ::testing::Eq(other.rcode())),
41 ::testing::Property("ns_type", &DnsQueryEvent::type,
42 ::testing::Eq(other.type())),
43 ::testing::Property("cache_hit", &DnsQueryEvent::cache_hit,
44 ::testing::Eq(other.cache_hit())),
45 ::testing::Property("ip_version", &DnsQueryEvent::ip_version,
46 ::testing::Eq(other.ip_version())),
[all …]
Dresolv_gold_test.cpp67 class TestBase : public ::testing::Test {
179 EXPECT_THAT(ToStrings(result), ::testing::UnorderedElementsAreArray(addresses)); in VerifyAddress()
387 EXPECT_THAT(result_strs, testing::UnorderedElementsAreArray( in TEST_F()
394 class ResolvGoldTest : public TestBase, public ::testing::WithParamInterface<GoldTestParamType> {
397 static std::string Name(const ::testing::TestParamInfo<GoldTestParamType>& info) { in Name()
409 ::testing::Combine(::testing::Values(DnsProtocol::CLEARTEXT),
410 ::testing::ValuesIn(kGoldFilesGetAddrInfo)),
413 ::testing::Combine(::testing::Values(DnsProtocol::TLS),
414 ::testing::ValuesIn(kGoldFilesGetAddrInfoTls)),
419 ::testing::Combine(::testing::Values(DnsProtocol::CLEARTEXT),
[all …]
/packages/modules/adb/
Dbugreport_test.cpp28 using ::testing::_;
29 using ::testing::Action;
30 using ::testing::ActionInterface;
31 using ::testing::DoAll;
32 using ::testing::ElementsAre;
33 using ::testing::HasSubstr;
34 using ::testing::MakeAction;
35 using ::testing::Return;
36 using ::testing::StrEq;
37 using ::testing::WithArg;
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java21 import static com.android.launcher3.testing.TestProtocol.ALL_APPS_STATE_ORDINAL;
22 import static com.android.launcher3.testing.TestProtocol.BACKGROUND_APP_STATE_ORDINAL;
23 import static com.android.launcher3.testing.TestProtocol.HINT_STATE_ORDINAL;
24 import static com.android.launcher3.testing.TestProtocol.HINT_STATE_TWO_BUTTON_ORDINAL;
25 import static com.android.launcher3.testing.TestProtocol.NORMAL_STATE_ORDINAL;
26 import static com.android.launcher3.testing.TestProtocol.OVERVIEW_MODAL_TASK_STATE_ORDINAL;
27 import static com.android.launcher3.testing.TestProtocol.OVERVIEW_SPLIT_SELECT_ORDINAL;
28 import static com.android.launcher3.testing.TestProtocol.OVERVIEW_STATE_ORDINAL;
29 import static com.android.launcher3.testing.TestProtocol.QUICK_SWITCH_STATE_ORDINAL;
30 import static com.android.launcher3.testing.TestProtocol.SPRING_LOADED_STATE_ORDINAL;
[all …]
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DLiveChannelsTestController.java34 import com.android.tv.testing.data.ChannelInfo;
35 import com.android.tv.testing.testinput.ChannelStateData;
36 import com.android.tv.testing.testinput.TestInputControlConnection;
37 import com.android.tv.testing.testinput.TestInputControlUtils;
38 import com.android.tv.testing.uihelper.Constants;
39 import com.android.tv.testing.uihelper.LiveChannelsUiDeviceHelper;
40 import com.android.tv.testing.uihelper.MenuHelper;
41 import com.android.tv.testing.uihelper.SidePanelHelper;
42 import com.android.tv.testing.uihelper.UiDeviceAsserts;
43 import com.android.tv.testing.uihelper.UiDeviceUtils;
DLiveChannelsAppTest.java23 import com.android.tv.testing.testinput.ChannelStateData;
24 import com.android.tv.testing.testinput.TvTestInputConstants;
25 import com.android.tv.testing.uihelper.Constants;
26 import com.android.tv.testing.uihelper.DialogHelper;
78 data.mTvTrackInfos.add(com.android.tv.testing.constants.Constants.SVGA_VIDEO_TRACK); in testDisplayModeCancel()
80 com.android.tv.testing.constants.Constants.SVGA_VIDEO_TRACK.getId(); in testDisplayModeCancel()
104 data.mTvTrackInfos.add(com.android.tv.testing.constants.Constants.GENERIC_AUDIO_TRACK); in testMultiAudioCancel()
/packages/modules/NeuralNetworks/runtime/test/
DTestUnspecifiedDimensions.cpp87 class UnspecifiedDimensionsTest : public ::testing::TestWithParam<UnspecifiedDimensionsTestParam> {
640 testing::Values(SpecificationLevel::FULLY_SPECIFIED, SpecificationLevel::UNSPECIFIED_DIM,
643 testing::Values(SpecificationLevel::FULLY_SPECIFIED, SpecificationLevel::UNSPECIFIED_DIM,
645 static const auto kFullySpecified = testing::Values(SpecificationLevel::FULLY_SPECIFIED);
648 testing::Combine(testing::Values(UnspecifiedOperand::INPUT_MANDATORY),
653 testing::Combine(testing::Values(UnspecifiedOperand::CONST_MANDATORY),
657 testing::Combine(testing::Values(UnspecifiedOperand::TEMPORARY_VARIABLE),
661 testing::Combine(testing::Values(UnspecifiedOperand::CONST_OPTIONAL),
665 testing::Combine(testing::Values(UnspecifiedOperand::INPUT_OPTIONAL),
670 testing::Combine(testing::Values(UnspecifiedOperand::OUTPUT),
DTestMemoryDomain.cpp173 class MemoryDomainTestBase : public ::testing::Test {
176 ::testing::Test::SetUp(); in SetUp()
187 ::testing::Test::TearDown(); in TearDown()
252 public ::testing::WithParamInterface<MemoryDomainTestParam> {
434 testing::Values(AllocateReturn::OK, AllocateReturn::BAD_TOKEN, AllocateReturn::BAD_IBUFFER,
438 testing::Combine(testing::Values(true), testing::Bool(),
439 testing::Values(AllocateReturn::NOT_SUPPORTED)));
447 testing::Combine(testing::Values(false), testing::Bool(),
/packages/services/Car/cpp/computepipe/tests/
DPipeQueryTest.cpp37 using namespace ::testing;
69 class PipeQueryTest : public ::testing::Test {
84 ASSERT_THAT(status, testing::Eq(Error::OK)); in addFakeRunner()
90 ASSERT_THAT(mRegistry->RemoveEntry(name), testing::Eq(Error::OK)); in removeRunner()
114 testing::Ne(outNames->end())); in TEST_F()
116 testing::Ne(outNames->end())); in TEST_F()
128 EXPECT_THAT(runner, testing::NotNull()); in TEST_F()
/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
DPixelStreamManagerTest.cpp37 using ::testing::Contains;
38 using ::testing::Not;
39 using ::testing::Return;
223 .WillOnce(testing::DoAll(testing::SaveArg<0>(&memHandle), (Return(Status::SUCCESS)))); in TEST()
247 .WillRepeatedly(testing::DoAll(testing::SaveArg<0>(&memHandle), (Return(Status::SUCCESS)))); in TEST()
297 .WillRepeatedly(testing::DoAll(testing::SaveArg<0>(&memHandle), (Return(Status::SUCCESS)))); in TEST()
332 .WillOnce(testing::DoAll(testing::SaveArg<0>(&memHandle), (Return(Status::SUCCESS)))); in TEST()
358 .WillRepeatedly(testing::DoAll(testing::SaveArg<0>(&memHandle), (Return(Status::SUCCESS)))); in TEST()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramDataManagerTest.java32 import com.android.tv.testing.FakeTvInputManagerHelper;
33 import com.android.tv.testing.TestSingletonApp;
34 import com.android.tv.testing.constants.ConfigConstants;
35 import com.android.tv.testing.constants.Constants;
36 import com.android.tv.testing.data.ProgramInfo;
37 import com.android.tv.testing.data.ProgramUtils;
38 import com.android.tv.testing.fakes.FakeClock;
39 import com.android.tv.testing.fakes.FakeTvProvider;
40 import com.android.tv.testing.robo.ContentProviders;
41 import com.android.tv.testing.testdata.TestData;
/packages/services/Car/cpp/computepipe/tests/fuzz/
DPixelStreamManagerFuzzer.cpp35 using ::testing::Return;
79 .Times(testing::AnyNumber()) in LLVMFuzzerTestOneInput()
81 testing::DoAll(testing::SaveArg<0>(&memHandle), (Return(Status::SUCCESS)))); in LLVMFuzzerTestOneInput()
94 EXPECT_CALL((*mockEngine), notifyEndOfStream).Times(testing::AtMost(1)); in LLVMFuzzerTestOneInput()
100 EXPECT_CALL((*mockEngine), notifyEndOfStream).Times(testing::AtMost(1)); in LLVMFuzzerTestOneInput()
/packages/apps/TV/tests/common/src/com/android/tv/testing/activities/
DBaseMainActivityTestCase.java16 package com.android.tv.testing.activities;
27 import com.android.tv.testing.data.ChannelInfo;
28 import com.android.tv.testing.testinput.ChannelStateData;
29 import com.android.tv.testing.testinput.TestInputControlConnection;
30 import com.android.tv.testing.testinput.TestInputControlUtils;
31 import com.android.tv.testing.testinput.TvTestInputConstants;
/packages/services/Car/cpp/watchdog/server/tests/
DPackageInfoResolverTest.cpp36 using ::testing::_;
37 using ::testing::DoAll;
38 using ::testing::NotNull;
39 using ::testing::Pair;
40 using ::testing::Return;
41 using ::testing::SetArgPointee;
42 using ::testing::UnorderedElementsAre;
43 using ::testing::UnorderedElementsAreArray;
DMockResourceOveruseListener.h34 ON_CALL(*this, onAsBinder()).WillByDefault(::testing::Return(mMockBinder.get())); in MockResourceOveruseListener()
42 EXPECT_CALL(*mMockBinder, linkToDeath(::testing::_, nullptr, 0)) in injectLinkToDeathFailure()
43 .WillOnce(::testing::Return(android::binder::Status::EX_ILLEGAL_STATE)); in injectLinkToDeathFailure()
46 EXPECT_CALL(*mMockBinder, unlinkToDeath(::testing::_, nullptr, 0, nullptr)) in injectUnlinkToDeathFailure()
47 .WillOnce(::testing::Return(android::binder::Status::EX_ILLEGAL_STATE)); in injectUnlinkToDeathFailure()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java19 import static com.android.documentsui.testing.IntentAsserts.assertHasAction;
20 import static com.android.documentsui.testing.IntentAsserts.assertHasData;
21 import static com.android.documentsui.testing.IntentAsserts.assertHasExtra;
22 import static com.android.documentsui.testing.IntentAsserts.assertHasExtraIntent;
23 import static com.android.documentsui.testing.IntentAsserts.assertHasExtraList;
24 import static com.android.documentsui.testing.IntentAsserts.assertHasExtraUri;
25 import static com.android.documentsui.testing.IntentAsserts.assertTargetsComponent;
63 import com.android.documentsui.testing.ClipDatas;
64 import com.android.documentsui.testing.DocumentStackAsserts;
65 import com.android.documentsui.testing.Roots;
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDragHostTest.java33 import com.android.documentsui.testing.ClipDatas;
34 import com.android.documentsui.testing.DragEvents;
35 import com.android.documentsui.testing.TestActionHandler;
36 import com.android.documentsui.testing.TestDragAndDropManager;
37 import com.android.documentsui.testing.TestEnv;
38 import com.android.documentsui.testing.Views;
/packages/apps/TV/tests/common/src/com/android/tv/testing/testdata/
DTestData.java17 package com.android.tv.testing.testdata;
22 import com.android.tv.testing.data.ChannelInfo;
23 import com.android.tv.testing.data.ChannelUtils;
24 import com.android.tv.testing.data.ProgramUtils;
25 import com.android.tv.testing.utils.TestUtils;
/packages/modules/DnsResolver/
DDnsStatsTest.cpp31 using ::testing::IsEmpty;
32 using ::testing::UnorderedElementsAreArray;
69 class StatsRecordsTest : public ::testing::Test {};
107 class DnsStatsTest : public ::testing::Test {
436 testing::ElementsAreArray({server1, server2, server3, server4})); in TEST_F()
441 testing::ElementsAreArray({server2, server3, server4, server1})); in TEST_F()
446 testing::ElementsAreArray({server2, server4, server3, server1})); in TEST_F()
452 testing::ElementsAreArray({server4, server2, server3, server1})); in TEST_F()
457 testing::ElementsAreArray({server4, server2, server3, server1})); in TEST_F()
462 testing::ElementsAreArray({server2, server3, server1, server4})); in TEST_F()
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/data/epg/
DEpgFetcherImplTest.java38 import com.android.tv.testing.DbTestingUtils;
39 import com.android.tv.testing.EpgTestData;
40 import com.android.tv.testing.FakeEpgReader;
41 import com.android.tv.testing.FakeTvInputManagerHelper;
42 import com.android.tv.testing.TestSingletonApp;
43 import com.android.tv.testing.constants.ConfigConstants;
44 import com.android.tv.testing.fakes.FakeClock;
45 import com.android.tv.testing.fakes.FakeTvProvider;
46 import com.android.tv.testing.robo.ContentProviders;
/packages/modules/StatsD/lib/libkll/tests/
Dsampler_test.cpp32 using ::testing::_;
33 using ::testing::AnyOf;
34 using ::testing::Contains;
35 using ::testing::Eq;
36 using ::testing::Optional;
37 using ::testing::Pair;
39 class KllQuantileSamplerTest : public ::testing::Test {
273 class SamplerItemSeenTest : public ::testing::TestWithParam<int> {};
313 testing::Range(1, 1000, 10));
/packages/services/Car/cpp/telemetry/cartelemetryd/tests/
DTelemetryServerTest.cpp49 using ::testing::_;
50 using ::testing::ByMove;
51 using ::testing::Return;
58 inline testing::internal::ReturnAction<testing::internal::ByMoveWrapper<ScopedAStatus>> ReturnOk() { in ReturnOk()
59 return testing::Return(ByMove(ScopedAStatus::ok())); in ReturnOk()
87 class TelemetryServerTest : public ::testing::Test {
98 testing::internal::TypedExpectation<ScopedAStatus(const std::vector<CarDataInternal>&)>&
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestInputControl.java24 import com.android.tv.testing.data.ChannelInfo;
25 import com.android.tv.testing.data.ChannelUtils;
26 import com.android.tv.testing.testinput.ChannelState;
27 import com.android.tv.testing.testinput.ChannelStateData;
28 import com.android.tv.testing.testinput.ITestInputControl;
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestActivity.java47 import com.android.documentsui.testing.TestEnv;
48 import com.android.documentsui.testing.TestEventHandler;
49 import com.android.documentsui.testing.TestEventListener;
50 import com.android.documentsui.testing.TestLoaderManager;
51 import com.android.documentsui.testing.TestPackageManager;
52 import com.android.documentsui.testing.TestResources;
53 import com.android.documentsui.testing.TestSupportLoaderManager;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DRecentsLoaderTests.java37 import com.android.documentsui.testing.ActivityManagers;
38 import com.android.documentsui.testing.TestCursor;
39 import com.android.documentsui.testing.TestEnv;
40 import com.android.documentsui.testing.TestFileTypeLookup;
41 import com.android.documentsui.testing.TestImmediateExecutor;
42 import com.android.documentsui.testing.TestProvidersAccess;
43 import com.android.documentsui.testing.UserManagers;

12345678910>>...28