/external/toolchain-utils/crosperf/ |
D | experiment_runner_unittest.py | 193 self.assertEqual(mock_progress_string.call_count, 0) 194 self.assertEqual(mock_status_string.call_count, 2) 205 mock_status_string.call_count = 0 221 self.assertEqual(mock_progress_string.call_count, 0) 222 self.assertEqual(mock_status_string.call_count, 2) 233 mock_status_string.call_count = 0 250 self.assertEqual(mock_progress_string.call_count, 2) 251 self.assertEqual(mock_status_string.call_count, 2) 271 self.assertEqual(mock_report.call_count, 1) 298 self.assertEqual(mock_getuser.call_count, 0) [all …]
|
D | download_images_unittest.py | 56 self.assertEqual(mock_path_exists.call_count, 2) 64 self.assertEqual(mock_mkdirs.call_count, 1) 69 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 1) 87 self.assertEqual(mock_path_exists.call_count, 2) 96 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 0) 97 self.assertEqual(mock_cmd_exec.ChrootRunCommand.call_count, 0) 116 self.assertEqual(mock_path_exists.call_count, 1) 122 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 2) 153 self.assertEqual(mock_path_exists.call_count, 1) 159 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 0)
|
D | machine_manager_unittest.py | 184 self.assertEqual(mock_run_cmd.call_count, 0) 185 self.assertEqual(mock_run_croscmd.call_count, 0) 192 self.assertEqual(mock_run_croscmd.call_count, 0) 193 self.assertEqual(mock_checksummer.call_count, 0) 203 self.assertEqual(mock_checksummer.call_count, 0) 204 self.assertEqual(mock_run_cmd.call_count, 2) 205 self.assertEqual(mock_run_croscmd.call_count, 1) 206 self.assertEqual(mock_sleep.call_count, 1) 224 self.assertEqual(mock_checksummer.call_count, 0) 225 self.assertEqual(mock_run_croscmd.call_count, 0) [all …]
|
D | generate_report_unittest.py | 136 self.assertEqual(mock_run_actions.call_count, 1) 149 self.assertEqual(mock_run_actions.call_count, 1) 163 self.assertEqual(mock_write_file.call_count, len(actions)) 164 self.assertEqual(mock_print_exc.call_count, len(actions)) 172 self.assertEqual(mock_write_file.call_count, len(actions))
|
D | results_cache_unittest.py | 520 self.assertEqual(mock_runcmd.call_count, 0) 521 self.assertEqual(mock_copyfiles.call_count, 3) 534 self.assertEqual(mock_runcmd.call_count, 3) 535 self.assertEqual(mock_copyfiles.call_count, 3) 564 self.assertEqual(mockCopyFilesTo.call_count, 3) 735 self.assertEqual(mock_runcmd.call_count, 1) 738 self.assertEqual(mock_chrootruncmd.call_count, 1) 743 self.assertEqual(mock_getpath.call_count, 1) 744 self.assertEqual(mock_mkdtemp.call_count, 1) 756 self.assertEqual(mock_runcmd.call_count, 0) [all …]
|
/external/toolchain-utils/llvm_tools/ |
D | auto_llvm_bisection_unittest.py | 76 self.assertEqual(mock_is_file.call_count, 2) 77 self.assertEqual(mock_llvm_bisection.call_count, 3) 78 self.assertEqual(mock_traceback.call_count, 3) 79 self.assertEqual(mock_sleep.call_count, 2) 119 def MockStatusFileCheck(call_count, _last_tested): argument 122 if call_count < 2: 128 if call_count == 2: 136 def MockLLVMBisectionReturnValue(call_count, _args_output): argument 138 if call_count == 0: 142 if call_count == 1: [all …]
|
D | patch_manager_unittest.py | 272 self.assertEqual(mock_dry_run.call_count, 2) 451 def MultipleCallsToGetPatchPath(call_count, filesdir_path, rel_patch_path): argument 454 if call_count < 4: 456 test_patch_metadata[call_count]['rel_patch_path']) 459 test_patch_metadata[call_count]['rel_patch_path']) 466 def MultipleCallsToApplyPatches(call_count, _src_path, path_to_patch): argument 467 if call_count < 3: 471 test_patch_metadata[call_count]['rel_patch_path'])) 474 return call_count == 0 511 self.assertEqual(mock_get_path_to_patch.call_count, 4) [all …]
|
/external/webrtc/rtc_base/ |
D | bind_unittest.cc | 26 void NullaryVoid() { ++call_count; } in NullaryVoid() 28 ++call_count; in NullaryInt() 32 ++call_count; in NullaryConst() 35 void UnaryVoid(int dummy) { ++call_count; } in UnaryVoid() 38 ++call_count; in Identity() 42 ++call_count; in UnaryByPointer() 46 ++call_count; in UnaryByRef() 50 ++call_count; in Multiply() 57 mutable int call_count; member 129 EXPECT_EQ(0, object.call_count); in TEST() [all …]
|
/external/tensorflow/tensorflow/python/util/ |
D | deprecation_test.py | 41 self.assertEqual(0, mock_warning.call_count) 43 self.assertEqual(1, mock_warning.call_count) 47 self.assertEqual(1, mock_warning.call_count) 68 self.assertEqual(0, mock_warning.call_count) 70 self.assertEqual(1, mock_warning.call_count) 74 self.assertEqual(1, mock_warning.call_count) 97 self.assertEqual(1, mock_warning.call_count) 99 self.assertEqual(1, mock_warning.call_count) 114 self.assertEqual(1, mock_warning.call_count) 116 self.assertEqual(1, mock_warning.call_count) [all …]
|
D | module_wrapper_test.py | 56 self.assertEqual(0, mock_warning.call_count) 58 self.assertEqual(1, mock_warning.call_count) 60 self.assertEqual(1, mock_warning.call_count) 62 self.assertEqual(2, mock_warning.call_count) 64 self.assertEqual(2, mock_warning.call_count)
|
/external/llvm-project/llvm/utils/unittest/googlemock/include/gmock/ |
D | gmock-cardinalities.h | 71 virtual bool IsSatisfiedByCallCount(int call_count) const = 0; 74 virtual bool IsSaturatedByCallCount(int call_count) const = 0; 100 bool IsSatisfiedByCallCount(int call_count) const { in IsSatisfiedByCallCount() argument 101 return impl_->IsSatisfiedByCallCount(call_count); in IsSatisfiedByCallCount() 105 bool IsSaturatedByCallCount(int call_count) const { in IsSaturatedByCallCount() argument 106 return impl_->IsSaturatedByCallCount(call_count); in IsSaturatedByCallCount() 111 bool IsOverSaturatedByCallCount(int call_count) const { in IsOverSaturatedByCallCount() argument 112 return impl_->IsSaturatedByCallCount(call_count) && in IsOverSaturatedByCallCount() 113 !impl_->IsSatisfiedByCallCount(call_count); in IsOverSaturatedByCallCount()
|
/external/googletest/googlemock/include/gmock/ |
D | gmock-cardinalities.h | 75 virtual bool IsSatisfiedByCallCount(int call_count) const = 0; 79 virtual bool IsSaturatedByCallCount(int call_count) const = 0; 105 bool IsSatisfiedByCallCount(int call_count) const { in IsSatisfiedByCallCount() argument 106 return impl_->IsSatisfiedByCallCount(call_count); in IsSatisfiedByCallCount() 111 bool IsSaturatedByCallCount(int call_count) const { in IsSaturatedByCallCount() argument 112 return impl_->IsSaturatedByCallCount(call_count); in IsSaturatedByCallCount() 117 bool IsOverSaturatedByCallCount(int call_count) const { in IsOverSaturatedByCallCount() argument 118 return impl_->IsSaturatedByCallCount(call_count) && in IsOverSaturatedByCallCount() 119 !impl_->IsSatisfiedByCallCount(call_count); in IsOverSaturatedByCallCount()
|
/external/libbrillo/brillo/streams/ |
D | fake_stream_test.cc | 239 int call_count = 0; in TEST_F() local 240 auto callback = base::Bind([](int* call_count, Stream::AccessMode mode) { in TEST_F() argument 241 (*call_count)++; in TEST_F() 243 }, &call_count); in TEST_F() 248 EXPECT_EQ(1, call_count); in TEST_F() 254 EXPECT_EQ(2, call_count); in TEST_F() 264 EXPECT_EQ(3, call_count); in TEST_F() 398 int call_count = 0; in TEST_F() local 399 auto callback = base::Bind([](int* call_count, Stream::AccessMode mode) { in TEST_F() argument 400 (*call_count)++; in TEST_F() [all …]
|
/external/avb/test/ |
D | at_auth_unlock_unittest.py | 336 self.assertNotEqual(mock_subp_check_output.call_count, 0) 345 self.assertNotEqual(mock_subp_check_output.call_count, 0) 355 self.assertNotEqual(mock_subp_check_output.call_count, 0) 366 self.assertNotEqual(mock_subp_check_output.call_count, 0) 375 self.assertNotEqual(mock_subp_check_output.call_count, 0) 385 self.assertNotEqual(mock_subp_check_output.call_count, 0) 397 self.assertNotEqual(mock_subp_check_output.call_count, 0) 412 self.assertNotEqual(mock_subp_check_output.call_count, 0) 431 self.assertNotEqual(mock_subp_check_output.call_count, 0) 452 self.assertNotEqual(mock_subp_check_output.call_count, 0) [all …]
|
/external/arm-trusted-firmware/plat/hisilicon/hikey/ |
D | hisi_sip_svc.c | 40 int call_count = 0; in hisi_sip_handler() local 54 call_count += PMF_NUM_SMC_CALLS; in hisi_sip_handler() 57 call_count += 1; in hisi_sip_handler() 59 SMC_RET1(handle, call_count); in hisi_sip_handler()
|
/external/googletest/googlemock/src/ |
D | gmock-cardinalities.cc | 76 bool IsSatisfiedByCallCount(int call_count) const override { in IsSatisfiedByCallCount() 77 return min_ <= call_count && call_count <= max_; in IsSatisfiedByCallCount() 80 bool IsSaturatedByCallCount(int call_count) const override { in IsSaturatedByCallCount() 81 return call_count >= max_; in IsSaturatedByCallCount()
|
/external/llvm-project/llvm/utils/unittest/googlemock/src/ |
D | gmock-cardinalities.cc | 77 virtual bool IsSatisfiedByCallCount(int call_count) const { in IsSatisfiedByCallCount() 78 return min_ <= call_count && call_count <= max_; in IsSatisfiedByCallCount() 81 virtual bool IsSaturatedByCallCount(int call_count) const { in IsSaturatedByCallCount() 82 return call_count >= max_; in IsSaturatedByCallCount()
|
/external/arm-trusted-firmware/plat/arm/common/ |
D | arm_sip_svc.c | 51 int call_count = 0; in arm_sip_handler() local 93 call_count += PMF_NUM_SMC_CALLS; in arm_sip_handler() 96 call_count += 1; in arm_sip_handler() 98 SMC_RET1(handle, call_count); in arm_sip_handler()
|
/external/python/cpython3/Lib/test/ |
D | test_script_helper.py | 48 self.assertEqual(1, mock_popen.call_count) 49 self.assertEqual(1, mock_ire_func.call_count) 92 self.assertEqual(1, mock_check_call.call_count) 101 self.assertEqual(1, mock_check_call.call_count) 110 self.assertEqual(1, mock_check_call.call_count) 121 self.assertEqual(0, mock_check_call.call_count)
|
/external/llvm-project/libc/test/src/threads/ |
D | call_once_test.cpp | 23 static unsigned int call_count; variable 24 static void call_once_func() { ++call_count; } in call_once_func() 37 call_count = 0; in TEST() 54 EXPECT_EQ(call_count, 1U); in TEST()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | function_threadpool_test.cc | 81 std::atomic<int32> call_count(0); in Run() local 83 [&call_count](std::function<void()> fn) { in Run() 84 ++call_count; in Run() 109 EXPECT_GE(call_count, 1); // Test runner is used. in Run() 167 std::atomic<int32> call_count(0); in Run() local 169 [&call_count](std::function<void()> fn) { in Run() 170 ++call_count; in Run() 190 EXPECT_GE(call_count, 1); // Test runner is used. in Run()
|
/external/libevent/test/ |
D | regress_iocp.c | 116 int call_count; member 128 if (d_o->call_count < MAX_CALLS) { in dummy_cb() 129 d_o->keys[d_o->call_count] = key; in dummy_cb() 130 d_o->sizes[d_o->call_count] = n; in dummy_cb() 132 d_o->call_count++; in dummy_cb() 144 for (i=0; i < o->call_count; ++i) { in pair_is_in() 192 tt_int_op(o1.call_count, ==, 4); in test_iocp_port() 193 tt_int_op(o2.call_count, ==, 4); in test_iocp_port()
|
/external/python/setuptools/setuptools/tests/ |
D | test_build_clib.py | 51 assert cmd.compiler.create_static_lib.call_count == 1 58 assert cmd.compiler.compile.call_count == 1 59 assert cmd.compiler.create_static_lib.call_count == 1
|
/external/python/apitools/apitools/base/py/ |
D | credentials_lib_test.py | 72 self.assertEqual(3, opener_mock.call_count) 114 pre_cache_call_count = opener_mock.call_count 125 self.assertEqual(opener_mock.call_count, 4) 140 self.assertEqual(1, build_opener.call_count) 141 self.assertEqual(1, opener.open.call_count)
|
/external/oss-fuzz/infra/cifuzz/ |
D | clusterfuzz_deployment_test.py | 108 self.assertEqual(1, mocked_urlretrieve.call_count) 119 self.assertEqual(1, mocked_urlretrieve.call_count) 129 self.assertEqual(3, mocked_urlretrieve.call_count) 130 self.assertEqual(3, mocked_sleep.call_count)
|