Home
last modified time | relevance | path

Searched refs:call_count (Results 1 – 25 of 44) sorted by relevance

12

/external/webrtc/webrtc/base/
Dbind_unittest.cc23 void NullaryVoid() { ++call_count; } in NullaryVoid()
24 int NullaryInt() { ++call_count; return 1; } in NullaryInt()
25 int NullaryConst() const { ++call_count; return 2; } in NullaryConst()
26 void UnaryVoid(int dummy) { ++call_count; } in UnaryVoid()
27 template <class T> T Identity(T value) { ++call_count; return value; } in Identity()
29 ++call_count; in UnaryByPointer()
33 ++call_count; in UnaryByRef()
36 int Multiply(int a, int b) const { ++call_count; return a * b; } in Multiply()
41 mutable int call_count; member
121 EXPECT_EQ(0, object.call_count); in TEST()
[all …]
/external/google-breakpad/src/testing/include/gmock/
Dgmock-cardinalities.h69 virtual bool IsSatisfiedByCallCount(int call_count) const = 0;
72 virtual bool IsSaturatedByCallCount(int call_count) const = 0;
98 bool IsSatisfiedByCallCount(int call_count) const { in IsSatisfiedByCallCount() argument
99 return impl_->IsSatisfiedByCallCount(call_count); in IsSatisfiedByCallCount()
103 bool IsSaturatedByCallCount(int call_count) const { in IsSaturatedByCallCount() argument
104 return impl_->IsSaturatedByCallCount(call_count); in IsSaturatedByCallCount()
109 bool IsOverSaturatedByCallCount(int call_count) const { in IsOverSaturatedByCallCount() argument
110 return impl_->IsSaturatedByCallCount(call_count) && in IsOverSaturatedByCallCount()
111 !impl_->IsSatisfiedByCallCount(call_count); in IsOverSaturatedByCallCount()
/external/gmock/include/gmock/
Dgmock-cardinalities.h69 virtual bool IsSatisfiedByCallCount(int call_count) const = 0;
72 virtual bool IsSaturatedByCallCount(int call_count) const = 0;
98 bool IsSatisfiedByCallCount(int call_count) const { in IsSatisfiedByCallCount() argument
99 return impl_->IsSatisfiedByCallCount(call_count); in IsSatisfiedByCallCount()
103 bool IsSaturatedByCallCount(int call_count) const { in IsSaturatedByCallCount() argument
104 return impl_->IsSaturatedByCallCount(call_count); in IsSaturatedByCallCount()
109 bool IsOverSaturatedByCallCount(int call_count) const { in IsOverSaturatedByCallCount() argument
110 return impl_->IsSaturatedByCallCount(call_count) && in IsOverSaturatedByCallCount()
111 !impl_->IsSatisfiedByCallCount(call_count); in IsOverSaturatedByCallCount()
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/
Doauth2l_test.py83 self.assertEqual(1, mock_credentials.call_count)
92 self.assertEqual(1, mock_credentials.call_count)
101 self.assertEqual(1, mock_credentials.call_count)
115 self.assertEqual(1, mock_credentials.call_count)
130 self.assertEqual(1, mock_credentials.call_count)
141 self.assertEqual(1, mock_credentials.call_count)
178 self.assertEqual(1, mock_fetch.call_count)
181 self.assertEqual(1, mock_get_scopes.call_count)
198 self.assertEqual(1, mock_fetch.call_count)
199 self.assertEqual(1, mock_validate.call_count)
[all …]
/external/chromium-trace/catapult/dashboard/dashboard/
Dissue_tracker_service_test.py22 self.assertEqual(1, service._MakeCommentRequest.call_count)
38 self.assertEqual(1, service._MakeCommentRequest.call_count)
54 self.assertEqual(1, service._MakeCommentRequest.call_count)
70 self.assertEqual(1, service._ExecuteRequest.call_count)
71 self.assertEqual(1, mock_logging_error.call_count)
77 self.assertEqual(1, service._ExecuteRequest.call_count)
84 self.assertEqual(1, service._ExecuteRequest.call_count)
112 self.assertEqual(2, service._ExecuteRequest.call_count)
124 self.assertEqual(1, service._ExecuteRequest.call_count)
Dutils_test.py221 self.assertEqual(1, mock_logging_error.call_count)
248 self.assertEqual(1, mock_logging_error.call_count)
255 self.assertEqual(1, mock_logging_error.call_count)
Dauto_bisect_test.py203 self.assertEqual(0, mock_tick.call_count)
215 self.assertEqual(0, mock_tick.call_count)
226 self.assertEqual(1, mock_perform_bisect.call_count)
Dupdate_bug_with_results_test.py250 self.assertEqual(2, mock_logging_error.call_count)
443 self.assertEqual(0, mock_logging_error.call_count)
451 self.assertEqual(0, mock_log.call_count)
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/
Dmemory_backend_unittest.py30 self.assertEqual(1, mock_method.call_count)
49 self.assertEqual(1, mock_method.call_count)
79 self.assertEqual(1, response_handler.call_count)
83 self.assertEqual(2, response_handler.call_count)
100 self.assertEqual(1, response_handler.call_count)
119 self.assertEqual(1, response_handler.call_count)
124 self.assertEqual(2, response_handler.call_count)
142 self.assertEqual(1, response_handler.call_count)
/external/libbrillo/brillo/streams/
Dfake_stream_unittest.cc238 int call_count = 0; in TEST_F() local
239 auto callback = [&call_count](Stream::AccessMode mode) { in TEST_F()
240 call_count++; in TEST_F()
247 EXPECT_EQ(1, call_count); in TEST_F()
253 EXPECT_EQ(2, call_count); in TEST_F()
263 EXPECT_EQ(3, call_count); in TEST_F()
393 int call_count = 0; in TEST_F() local
394 auto callback = [&call_count](Stream::AccessMode mode) { in TEST_F()
395 call_count++; in TEST_F()
402 EXPECT_EQ(1, call_count); in TEST_F()
[all …]
/external/gmock/src/
Dgmock-cardinalities.cc77 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/google-breakpad/src/testing/src/
Dgmock-cardinalities.cc77 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/chromium-trace/catapult/dashboard/dashboard/models/
Dinternal_only_model_test.py57 self.assertEqual(0, mock_create_callback.call_count)
60 self.assertEqual(1, mock_create_callback.call_count)
62 self.assertEqual(2, mock_create_callback.call_count)
65 self.assertEqual(2, mock_create_callback.call_count)
/external/autotest/scheduler/
Dscheduler_lib_unittest.py45 connection_manager.open_connection.call_count == 0)
64 database_connection._DjangoBackend.execute.call_count == 2)
85 readonly_connection.set_globally_disabled.call_count == 0)
87 setup_django_environment.enable_autocommit.call_count == 0)
Ddrone_utility.py526 call_count = {}
528 call_count.setdefault(call._method, 0)
529 call_count[call._method] += 1
531 for method, count in call_count.iteritems())
/external/chromium-trace/catapult/telemetry/telemetry/internal/util/
Dbinary_manager_unittest.py37 self.assertEqual(2, base_config_mock.call_count)
83 self.assertEqual(2, base_config_mock.call_count)
107 self.assertEqual(2, base_config_mock.call_count)
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dbatch_test.py129 self.assertEqual(1, mock_request.call_count)
175 self.assertEqual(1, mock_request.call_count)
238 self.assertEqual(2, mock_request.call_count)
511 self.assertEqual(len(test_requests), global_callback.call_count)
Dtransfer_test.py103 self.assertEqual(1, make_request.call_count)
129 self.assertEqual(1, make_request.call_count)
179 self.assertEqual(2, make_request.call_count)
Dcredentials_lib_test.py57 self.assertEqual(3, opener_mock.call_count)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb2/
Dtest_table.py2127 self.assertEqual(mock_batch.call_count, 0)
2132 self.assertEqual(mock_batch.call_count, 1)
2137 self.assertEqual(mock_batch.call_count, 2)
2588 self.assertEqual(mock_query.call_count, 1)
2611 self.assertEqual(mock_query_2.call_count, 1)
2644 self.assertEqual(mock_query.call_count, 1)
2679 self.assertEqual(mock_scan.call_count, 1)
2702 self.assertEqual(mock_scan_2.call_count, 1)
2734 self.assertEqual(mock_query.call_count, 1)
2797 self.assertEqual(mock_query.call_count, 1)
[all …]
/external/v8/src/
Dtype-feedback-vector.cc465 Object* call_count = GetFeedbackExtra(); in ExtractCallCount() local
466 if (call_count->IsSmi()) { in ExtractCallCount()
467 int value = Smi::cast(call_count)->value() / 2; in ExtractCallCount()
500 void CallICNexus::ConfigureMegamorphic(int call_count) { in ConfigureMegamorphic() argument
503 SetFeedbackExtra(Smi::FromInt(call_count * kCallCountIncrement), in ConfigureMegamorphic()
/external/v8/test/cctest/
Dtest-thread-termination.cc208 int call_count = 0; variable
212 if (++call_count == 10) { in TerminateOrReturnObject()
269 call_count = 0; in TEST()
275 call_count = 0; in TEST()
/external/gmock/test/
Dgmock-cardinalities_test.cc400 virtual bool IsSatisfiedByCallCount(int call_count) const { in IsSatisfiedByCallCount()
401 return (call_count % 2 == 0); in IsSatisfiedByCallCount()
/external/google-breakpad/src/testing/test/
Dgmock-cardinalities_test.cc400 virtual bool IsSatisfiedByCallCount(int call_count) const { in IsSatisfiedByCallCount()
401 return (call_count % 2 == 0); in IsSatisfiedByCallCount()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb/
Dtest_layer2.py71 self.assertEqual(self.api.describe_table.call_count, 0)

12