Home
last modified time | relevance | path

Searched refs:sentinel (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/external/python/google-auth-library-python/tests/oauth2/
Dtest_id_token.py49 returned_certs = id_token._fetch_certs(request, mock.sentinel.cert_url)
51 request.assert_called_once_with(mock.sentinel.cert_url, method="GET")
59 id_token._fetch_certs(request, mock.sentinel.cert_url)
61 request.assert_called_once_with(mock.sentinel.cert_url, method="GET")
67 result = id_token.verify_token(mock.sentinel.token, mock.sentinel.request)
71 mock.sentinel.request, id_token._GOOGLE_OAUTH2_CERTS_URL
74 mock.sentinel.token,
85 mock.sentinel.token,
86 mock.sentinel.request,
87 audience=mock.sentinel.audience,
[all …]
/external/python/python-api-core/tests/unit/
Dtest_page_iterator.py30 parent = mock.sentinel.parent
31 item_to_value = mock.sentinel.item_to_value
46 parent = mock.sentinel.parent
74 parent = mock.sentinel.parent
75 item_to_value = mock.sentinel.item_to_value
77 raw_page = mock.sentinel.raw_page
93 client = mock.sentinel.client
94 item_to_value = mock.sentinel.item_to_value
181 parent = mock.sentinel.parent
243 client = mock.sentinel.client
[all …]
Dtest_bidi.py38 yield mock.sentinel.A
40 yield mock.sentinel.B
42 yield mock.sentinel.C
52 assert items == [mock.sentinel.A, mock.sentinel.B]
60 generator = bidi._RequestQueueGenerator(q, initial_request=mock.sentinel.A)
65 assert items == [mock.sentinel.A]
74 q, initial_request=lambda: mock.sentinel.A
80 assert items == [mock.sentinel.A]
84 q.get.side_effect = [mock.sentinel.A, queue.Empty()]
95 q.put.assert_called_once_with(mock.sentinel.A)
[all …]
/external/python/google-auth-library-python/tests_async/oauth2/
Dtest_id_token.py47 returned_certs = await id_token._fetch_certs(request, mock.sentinel.cert_url)
49 request.assert_called_once_with(mock.sentinel.cert_url, method="GET")
58 await id_token._fetch_certs(request, mock.sentinel.cert_url)
60 request.assert_called_once_with(mock.sentinel.cert_url, method="GET")
67 result = await id_token.verify_token(mock.sentinel.token, mock.sentinel.request)
71 mock.sentinel.request, sync_id_token._GOOGLE_OAUTH2_CERTS_URL
74 mock.sentinel.token,
86 mock.sentinel.token, mock.sentinel.request, clock_skew_in_seconds=10
91 mock.sentinel.request, sync_id_token._GOOGLE_OAUTH2_CERTS_URL
94 mock.sentinel.token,
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/iterators/predef.iterators/unreachable.sentinel/
Dunreachable_sentinel.pass.cpp36 auto sentinel = std::unreachable_sentinel; in test() local
38 assert(i != sentinel); in test()
39 assert(sentinel != i); in test()
40 assert(!(i == sentinel)); in test()
41 assert(!(sentinel == i)); in test()
43 assert(&i != sentinel); in test()
44 assert(sentinel != &i); in test()
45 assert(!(&i == sentinel)); in test()
46 assert(!(sentinel == &i)); in test()
49 assert(p != sentinel); in test()
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestsentinel.py4 from unittest.mock import sentinel, DEFAULT
10 self.assertEqual(sentinel.whatever, sentinel.whatever,
12 self.assertNotEqual(sentinel.whatever, sentinel.whateverelse,
17 self.assertEqual(str(sentinel.whatever), 'sentinel.whatever',
22 self.assertIs(DEFAULT, sentinel.DEFAULT)
26 self.assertRaises(AttributeError, lambda: sentinel.__bases__)
31 pickled = pickle.dumps(sentinel.whatever, proto)
33 self.assertIs(unpickled, sentinel.whatever)
36 self.assertIs(copy.copy(sentinel.whatever), sentinel.whatever)
37 self.assertIs(copy.deepcopy(sentinel.whatever), sentinel.whatever)
Dtestwith.py5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call
9 something = sentinel.Something
10 something_else = sentinel.SomethingElse
19 with patch('%s.something' % __name__, sentinel.Something2):
20 self.assertEqual(something, sentinel.Something2, "unpatched")
21 self.assertEqual(something, sentinel.Something)
26 with patch('%s.something' % __name__, sentinel.Something2):
27 self.assertEqual(something, sentinel.Something2, "unpatched")
29 self.assertEqual(something, sentinel.Something)
37 self.assertEqual(something, sentinel.Something)
[all …]
Dtestpatch.py15 NonCallableMock, CallableMixin, sentinel,
42 something = sentinel.Something
43 something_else = sentinel.SomethingElse
99 attribute = sentinel.Original
101 @patch.object(Something, 'attribute', sentinel.Patched)
103 self.assertEqual(Something.attribute, sentinel.Patched, "unpatched")
106 self.assertEqual(Something.attribute, sentinel.Original,
116 attribute = sentinel.Original
123 self.assertEqual(Something.attribute, sentinel.Original,
129 attribute = sentinel.Original
[all …]
/external/cronet/third_party/libxml/src/
Dlist.c40 xmlLinkPtr sentinel; member
104 … for(lk = l->sentinel->next;lk != l->sentinel && l->linkCompare(lk->data, data) <0 ;lk = lk->next); in xmlListLowerSearch()
124 … for(lk = l->sentinel->prev;lk != l->sentinel && l->linkCompare(lk->data, data) >0 ;lk = lk->prev); in xmlListHigherSearch()
144 if (lk == l->sentinel) in xmlListLinkSearch()
169 if (lk == l->sentinel) in xmlListLinkReverseSearch()
200 if (NULL ==(l->sentinel = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListCreate()
206 l->sentinel->next = l->sentinel; in xmlListCreate()
207 l->sentinel->prev = l->sentinel; in xmlListCreate()
208 l->sentinel->data = NULL; in xmlListCreate()
339 xmlFree(l->sentinel); in xmlListDelete()
[all …]
/external/libxml2/
Dlist.c40 xmlLinkPtr sentinel; member
104 … for(lk = l->sentinel->next;lk != l->sentinel && l->linkCompare(lk->data, data) <0 ;lk = lk->next); in xmlListLowerSearch()
124 … for(lk = l->sentinel->prev;lk != l->sentinel && l->linkCompare(lk->data, data) >0 ;lk = lk->prev); in xmlListHigherSearch()
144 if (lk == l->sentinel) in xmlListLinkSearch()
169 if (lk == l->sentinel) in xmlListLinkReverseSearch()
200 if (NULL ==(l->sentinel = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListCreate()
206 l->sentinel->next = l->sentinel; in xmlListCreate()
207 l->sentinel->prev = l->sentinel; in xmlListCreate()
208 l->sentinel->data = NULL; in xmlListCreate()
339 xmlFree(l->sentinel); in xmlListDelete()
[all …]
/external/clang/test/SemaObjC/
Dmethod-sentinel-attr.m8 - (void) foo1 : (int)x, ... ATTR; // expected-note {{method has been explicitly marked sentinel her…
9 - (void) foo3 : (int)x __attribute__ ((__sentinel__)) ; // expected-warning {{'sentinel' attribute …
10 …tribute__ ((__sentinel__(1))); // expected-note {{method has been explicitly marked sentinel here}}
11 …tribute__ ((__sentinel__(5))); // expected-note {{method has been explicitly marked sentinel here}}
12 …tribute__ ((__sentinel__(0))); // expected-note {{method has been explicitly marked sentinel here}}
14 - (void) foo9 : (int)x, ... __attribute__ ((__sentinel__(-1))); // expected-error {{'sentinel' par…
17 - (void) foo12 : (int)x, ... ATTR; // expected-note {{method has been explicitly marked sentinel he…
20 - (id) foo13 : (id)firstObj, ... __attribute__((sentinel(0,1))); argument
21 - (id) foo14 : (id)firstObj : (Class)secondObj, ... __attribute__((sentinel(0,1))); argument
22 - (id) foo15 : (id*)firstObj, ... __attribute__((sentinel(0,1))); argument
[all …]
/external/python/google-api-python-client/tests/
Dtest__auth.py37 default.return_value = (mock.sentinel.credentials, mock.sentinel.project)
41 self.assertEqual(credentials, mock.sentinel.credentials)
47 default.return_value = (mock.sentinel.credentials, mock.sentinel.project)
51 self.assertEqual(credentials, mock.sentinel.credentials)
58 default.return_value = (mock.sentinel.credentials, mock.sentinel.project)
62 self.assertEqual(credentials, mock.sentinel.credentials)
66 default.return_value = (mock.sentinel.credentials, mock.sentinel.project)
70 self.assertEqual(credentials, mock.sentinel.credentials)
75 returned = _auth.with_scopes(credentials, mock.sentinel.scopes)
88 returned = _auth.with_scopes(credentials, mock.sentinel.scopes)
[all …]
/external/clang/test/Sema/
Dsentinel-attribute.c6 int x __attribute__((sentinel)); //expected-warning{{'sentinel' attribute only applies to functions…
8 void f1(int a, ...) __attribute__ ((sentinel)); // expected-note {{function has been explicitly mar…
9 void f2(int a, ...) __attribute__ ((sentinel(1)));
11 void f3(int a, ...) __attribute__ ((sentinel("hello"))); //expected-error{{'sentinel' attribute req…
12 void f4(int a, ...) __attribute__ ((sentinel(1, 2, 3))); //expected-error{{'sentinel' attribute tak…
13 void f4(int a, ...) __attribute__ ((sentinel(-1))); //expected-error{{parameter 1 less than zero}}
14 void f4(int a, ...) __attribute__ ((sentinel(0, 2))); // expected-error{{parameter 2 not 0 or 1}}
16 void f5(int a) __attribute__ ((sentinel)); //expected-warning{{'sentinel' attribute only supported …
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
Drcssmin.c30 const rchar *sentinel; member
188 && source < ctx->sentinel && target < ctx->tsentinel in copy_match()
220 && source < ctx->sentinel && target < ctx->tsentinel in copy_imatch()
248 copy(const rchar *source, const rchar *sentinel, rchar **target_, in copy() argument
253 while (source < sentinel && target < ctx->tsentinel) in copy()
258 return (source == sentinel); in copy()
275 if (source < ctx->sentinel && !(target < ctx->tsentinel)) { \
301 if (source < ctx->sentinel && target < ctx->tsentinel) { in copy_escape()
310 if (ctx->sentinel - source > 5) in copy_escape()
313 hsentinel = ctx->sentinel; in copy_escape()
[all …]
/external/openscreen/cast/streaming/
Dpacket_receive_stats_tracker_unittest.cc36 const RtcpReportBlock sentinel = GetSentinel(); \
37 EXPECT_EQ(sentinel.ssrc, (x).ssrc); \
38 EXPECT_EQ(sentinel.packet_fraction_lost_numerator, \
40 EXPECT_EQ(sentinel.cumulative_packets_lost, (x).cumulative_packets_lost); \
41 EXPECT_EQ(sentinel.extended_high_sequence_number, \
43 EXPECT_EQ(sentinel.jitter, (x).jitter); \
44 EXPECT_EQ(sentinel.last_status_report_id, (x).last_status_report_id); \
45 EXPECT_EQ(sentinel.delay_since_last_report, (x).delay_since_last_report); \
52 const RtcpReportBlock sentinel = GetSentinel(); \
54 EXPECT_EQ(sentinel.ssrc, (x).ssrc); \
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/docs/Status/
DZipProjects.csv11 | `zip_view::sentinel`", Hui Xie, |Complete|
13 | `[range.zip.sentinel] <https://wg21.link/range.zip.sentinel>`_, "`zip_view::sentinel <https://rev…
15 | `zip_transform_view::sentinel`", Hui Xie, |Not Started|
17 | `[range.zip.transform.sentinel] <https://wg21.link/range.zip.transform.sentinel>`_, "zip_transfor…
19 | `adjacent_view::sentinel`", Hui Xie, |Not Started|
21 | `[range.adjacent.sentinel] <https://wg21.link/range.adjacent.sentinel>`_, "adjacent_view::sentine…
23 | `adjacent_transform_view::sentinel`", Hui Xie, |Not Started|
25 …[range.adjacent.transform.sentinel] <https://wg21.link/range.adjacent.transform.sentinel>`_, "adja…
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/
Drjsmin.c94 *sentinel = source + length; in rjsmin() local
99 while (source < sentinel) { in rjsmin()
119 while (source < sentinel) { in rjsmin()
130 if (source < sentinel) { in rjsmin()
133 if (c == U('\r') && source < sentinel in rjsmin()
147 if (!(source < sentinel)) { in rjsmin()
192 while (source < sentinel) { in rjsmin()
202 if (source < sentinel) { in rjsmin()
210 while (source < sentinel) { in rjsmin()
217 if (source < sentinel) { in rjsmin()
[all …]
/external/python/python-api-core/tests/asyncio/
Dtest_page_iterator_async.py30 client = mock.sentinel.client
31 item_to_value = mock.sentinel.item_to_value
50 parent = mock.sentinel.parent
130 parent = mock.sentinel.parent
194 client = mock.sentinel.client
197 client, mock.sentinel.method, mock.sentinel.request, items_field
204 assert iterator._method == mock.sentinel.method
205 assert iterator._request == mock.sentinel.request
221 client = mock.sentinel.client
227 mock.sentinel.method,
[all …]
Dtest_grpc_helpers_async.py92 callback = mock.sentinel.callback
187 side_effect=[mock.sentinel.response, grpc_error]
197 assert response == mock.sentinel.response
208 side_effect=[mock.sentinel.response, non_grpc_error]
218 assert response == mock.sentinel.response
246 await wrapped_call.write(mock.sentinel.request)
248 await wrapped_call.write(mock.sentinel.request)
283 return_value=(mock.sentinel.credentials, mock.sentinel.projet),
302 return_value=mock.sentinel.Request,
308 return_value=(mock.sentinel.credentials, mock.sentinel.projet),
[all …]
/external/python/google-auth-library-python/tests/
Dtest_app_engine.py51 app_identity.get_application_id.return_value = mock.sentinel.project
52 assert app_engine.get_project_id() == mock.sentinel.project
66 mock.sentinel.key_id,
67 mock.sentinel.signature,
76 mock.sentinel.key_id,
77 mock.sentinel.signature,
85 assert signature == mock.sentinel.signature
147 mock.sentinel.service_account_email
151 assert credentials.service_account_email == mock.sentinel.service_account_email
156 service_account_id=mock.sentinel.service_account_email
[all …]
Dtest_iam.py61 request = mock.sentinel.request
66 signer = iam.Signer(request, credentials, mock.sentinel.service_account_email)
68 assert signer._request == mock.sentinel.request
70 assert signer._service_account_email == mock.sentinel.service_account_email
74 mock.sentinel.request,
75 mock.sentinel.credentials,
76 mock.sentinel.service_account_email,
87 signer = iam.Signer(request, credentials, mock.sentinel.service_account_email)
99 signer = iam.Signer(request, credentials, mock.sentinel.service_account_email)
Dtest__default.py138 return mock.sentinel.project_id
143 return_value=(MOCK_CREDENTIALS, mock.sentinel.project_id),
382 assert project_id is mock.sentinel.project_id
425 request=mock.sentinel.request,
431 assert project_id is mock.sentinel.project_id
432 get_project_id.assert_called_with(credentials, request=mock.sentinel.request)
450 assert project_id is mock.sentinel.project_id
497 assert project_id is mock.sentinel.project_id
516 return_value=mock.sentinel.project_id,
529 assert project_id == mock.sentinel.project_id
[all …]
/external/golang-protobuf/internal/errors/
Derrors_test.go14 var sentinel = New("sentinel")
27 what: `New("%v", sentinel)`,
28 err: New("%v", sentinel),
30 isNot: []error{sentinel},
32 what: `Wrap(sentinel, "%v", "text")`,
33 err: Wrap(sentinel, "%v", "text"),
35 is: []error{sentinel},
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.access/
Dsize.pass.cpp232 struct sentinel { struct
233 friend bool operator==(sentinel, forward_iterator<int*>);
234 …friend constexpr std::ptrdiff_t operator-(const sentinel, const forward_iterator<int*>) { return 2… in operator -()
235 …friend constexpr std::ptrdiff_t operator-(const forward_iterator<int*>, const sentinel) { return 2… in operator -()
239 friend constexpr sentinel end(HasMinusBeginEnd) { return {}; } in end()
245 struct sentinel { struct
246 friend bool operator==(sentinel, other_forward_iterator);
247 …friend constexpr std::ptrdiff_t operator-(const sentinel, const other_forward_iterator) { return 2… in operator -()
248 …friend constexpr std::ptrdiff_t operator-(const other_forward_iterator, const sentinel) { return 2… in operator -()
252 friend constexpr sentinel end(InvalidMinusBeginEnd) { return {}; } in end()
[all …]
/external/clang/test/SemaCXX/
Dattr-sentinel.cpp3 void f(int, ...) __attribute__((sentinel));
12 S(int,...) __attribute__((sentinel)); // expected-note {{marked sentinel}}
13 void a(int,...) __attribute__((sentinel)); // expected-note {{marked sentinel}}
14 void* operator new(size_t,...) __attribute__((sentinel)); // expected-note {{marked sentinel}}
15 void operator()(int,...) __attribute__((sentinel)); // expected-note {{marked sentinel}}

12345678910>>...12