/external/protobuf/python/google/protobuf/internal/ |
D | reflection_test.py | 108 self.assertEqual(len(values), len(others)) 119 self.assertEqual(24, proto.optional_int32) 120 self.assertEqual(54.321, proto.optional_double) 121 self.assertEqual('optional_string', proto.optional_string) 187 self.assertEqual(24, proto.optional_int32) 188 self.assertEqual('optional_string', proto.optional_string) 207 self.assertEqual(0, proto.optional_int32) 259 self.assertEqual(0, original_scalar_value) 270 self.assertEqual(new_val, getattr(composite_field, scalar_field_name)) 285 self.assertEqual(0, getattr(composite_field, scalar_field_name)) [all …]
|
D | test_util.py | 390 test_case.assertEqual(101, message.optional_int32) 391 test_case.assertEqual(102, message.optional_int64) 392 test_case.assertEqual(103, message.optional_uint32) 393 test_case.assertEqual(104, message.optional_uint64) 394 test_case.assertEqual(105, message.optional_sint32) 395 test_case.assertEqual(106, message.optional_sint64) 396 test_case.assertEqual(107, message.optional_fixed32) 397 test_case.assertEqual(108, message.optional_fixed64) 398 test_case.assertEqual(109, message.optional_sfixed32) 399 test_case.assertEqual(110, message.optional_sfixed64) [all …]
|
D | wire_format_test.py | 47 self.assertEqual((field_number << 3) | tag_type, 61 self.assertEqual(expected_field_number, field_number) 62 self.assertEqual(expected_wire_type, wire_type) 71 self.assertEqual(0, Z(0)) 72 self.assertEqual(1, Z(-1)) 73 self.assertEqual(2, Z(1)) 74 self.assertEqual(3, Z(-2)) 75 self.assertEqual(4, Z(2)) 76 self.assertEqual(0xfffffffe, Z(0x7fffffff)) 77 self.assertEqual(0xffffffff, Z(-0x80000000)) [all …]
|
D | generator_test.py | 59 self.assertEqual( 67 self.assertEqual(4, unittest_pb2.FOREIGN_FOO) 68 self.assertEqual(5, unittest_pb2.FOREIGN_BAR) 69 self.assertEqual(6, unittest_pb2.FOREIGN_BAZ) 72 self.assertEqual(1, proto.FOO) 73 self.assertEqual(1, unittest_pb2.TestAllTypes.FOO) 74 self.assertEqual(2, proto.BAR) 75 self.assertEqual(2, unittest_pb2.TestAllTypes.BAR) 76 self.assertEqual(3, proto.BAZ) 77 self.assertEqual(3, unittest_pb2.TestAllTypes.BAZ) [all …]
|
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/ |
D | test_extensions.py | 49 self.assertEqual(1, len(method_list)) 51 self.assertEqual('foo', method.name()) 52 self.assertEqual(0, len(method.get_parameters())) 56 self.assertEqual(1, len(method_list)) 58 self.assertEqual('foo', method.name()) 59 self.assertEqual(2, len(method.get_parameters())) 61 self.assertEqual(None, method.get_parameter_value('x')) 63 self.assertEqual('10', method.get_parameter_value('y')) 68 self.assertEqual(1, len(method_list)) 70 self.assertEqual('foo', method.name()) [all …]
|
D | test_mock.py | 52 self.assertEqual('ABC\r\n', self._conn.readline()) 53 self.assertEqual('DEFG\r\n', self._conn.readline()) 54 self.assertEqual('\r\n', self._conn.readline()) 55 self.assertEqual('HIJK', self._conn.readline()) 56 self.assertEqual('', self._conn.readline()) 59 self.assertEqual('ABC\r\nD', self._conn.read(6)) 60 self.assertEqual('EFG\r\n\r\nHI', self._conn.read(9)) 61 self.assertEqual('JK', self._conn.read(10)) 62 self.assertEqual('', self._conn.read(10)) 65 self.assertEqual('ABC\r\nD', self._conn.read(6)) [all …]
|
D | test_http_header_util.py | 46 self.assertEqual(None, host) 47 self.assertEqual(None, port) 48 self.assertEqual('/ws/test', resource) 53 self.assertEqual('localhost', host) 54 self.assertEqual(10080, port) 55 self.assertEqual('/ws/test', resource) 59 self.assertEqual('example.com', host) 60 self.assertEqual(80, port) 61 self.assertEqual('/ws/test', resource) 65 self.assertEqual('example.com', host) [all …]
|
D | test_msgutil.py | 150 self.assertEqual('\x81\x05Hello', request.connection.written_data()) 155 self.assertEqual('\x81\x7d' + payload, 162 self.assertEqual('\x81\x7e\x00\x7e' + payload, 168 self.assertEqual('\x81\x7e\xff\xff' + payload, 175 self.assertEqual('\x81\x7f\x00\x00\x00\x00\x00\x01\x00\x00' + payload, 182 self.assertEqual('\x81\x03\xe6\x97\xa5', 191 self.assertEqual('\x01\x05Hello\x00\x01 \x00\x05World\x80\x01!', 198 self.assertEqual('\x01\x0cHello World!\x80\x00', 209 self.assertEqual(expected, request.connection.written_data()) 235 self.assertEqual(expected, request.connection.written_data()) [all …]
|
D | test_handshake_hybi.py | 154 self.assertEqual( 156 self.assertEqual('/demo', request.ws_resource) 157 self.assertEqual('http://example.com', request.ws_origin) 158 self.assertEqual(None, request.ws_protocol) 159 self.assertEqual(None, request.ws_extensions) 160 self.assertEqual(common.VERSION_HYBI_LATEST, request.ws_version) 169 self.assertEqual( 178 self.assertEqual( 188 self.assertEqual( 214 self.assertEqual(EXPECTED_RESPONSE, request.connection.written_data()) [all …]
|
D | test_mux.py | 263 self.assertEqual(0, channel_id) 265 self.assertEqual(1, channel_id) 267 self.assertEqual(2 ** 14 - 1, channel_id) 269 self.assertEqual(2 ** 21 - 1, channel_id) 271 self.assertEqual(2 ** 29 - 1, channel_id) 272 self.assertEqual(len(data), parser._read_position) 276 self.assertEqual('\x00', encoded) 278 self.assertEqual('\xbf\xff', encoded) 280 self.assertEqual('\xc0@\x00', encoded) 282 self.assertEqual('\xdf\xff\xff', encoded) [all …]
|
D | test_handshake_hybi00.py | 354 self.assertEqual(_GOOD_RESPONSE_DEFAULT_PORT, 356 self.assertEqual('/demo', request.ws_resource) 357 self.assertEqual('http://example.com', request.ws_origin) 358 self.assertEqual('ws://example.com/demo', request.ws_location) 359 self.assertEqual('sample', request.ws_protocol) 366 self.assertEqual(_GOOD_RESPONSE_DEFAULT_PORT, 376 self.assertEqual(_GOOD_RESPONSE_SECURE, 378 self.assertEqual('sample', request.ws_protocol) 385 self.assertEqual(_GOOD_RESPONSE_NONDEFAULT_PORT, 387 self.assertEqual('sample', request.ws_protocol) [all …]
|
D | test_util.py | 52 self.assertEqual('None\n', util.get_stack_trace()) 62 self.assertEqual('World', str(exc)) 64 self.assertEqual('Hello World', str(exc)) 69 self.assertEqual(None, util.get_script_interp( 71 self.assertEqual(None, util.get_script_interp( 73 self.assertEqual('/usr/bin/perl -wT', util.get_script_interp( 75 self.assertEqual(cygwin_perl + ' -wT', util.get_script_interp( 79 self.assertEqual('61 7a 41 5a 30 39 20 09 0d 0a 00 ff', 90 self.assertEqual('\x19\x68\x5a', result) 94 self.assertEqual('\xe6\x97\xa5', result) [all …]
|
D | test_dispatch.py | 56 self.assertEqual(os.path.abspath('/a/b').replace('\\', '/'), 58 self.assertEqual(os.path.abspath('/a/b').replace('\\', '/'), 60 self.assertEqual(os.path.abspath('/a/b').replace('\\', '/'), 62 self.assertEqual(os.path.abspath('abc').replace('\\', '/'), 71 self.assertEqual('/h', converter(os_root + 'a/b/h_wsh.py')) 72 self.assertEqual('/c/h', converter(os_root + 'a/b/c/h_wsh.py')) 73 self.assertEqual(None, converter(os_root + 'a/b/h.py')) 74 self.assertEqual(None, converter('a/b/h_wsh.py')) 77 self.assertEqual('/h', converter(dispatch._normalize_path( 81 self.assertEqual('/h', converter(os_root + 'a/b/h_wsh.py')) [all …]
|
D | test_handshake_draft75.py | 403 self.assertEqual(_GOOD_RESPONSE_DEFAULT_PORT, 405 self.assertEqual('/demo', request.ws_resource) 406 self.assertEqual('http://example.com', request.ws_origin) 407 self.assertEqual('ws://example.com/demo', request.ws_location) 408 self.assertEqual('sample', request.ws_protocol) 417 self.assertEqual(_GOOD_RESPONSE_SECURE, 419 self.assertEqual('sample', request.ws_protocol) 426 self.assertEqual(_GOOD_RESPONSE_NONDEFAULT_PORT, 428 self.assertEqual('sample', request.ws_protocol) 436 self.assertEqual(_GOOD_RESPONSE_SECURE_NONDEF, [all …]
|
/external/chromium/net/tools/testserver/ |
D | chromiumsync_test.py | 40 self.assertEqual(unique_datatypes, set(chromiumsync.ALL_TYPES), 50 self.assertEqual(1, proto.version) 53 self.assertEqual(2, proto.version) 56 self.assertEqual(2, self.model._entries[proto.id_string].version) 78 self.assertEqual(expected_position, entry.position_in_parent) 79 self.assertEqual(parent_id, entry.parent_id_string) 113 self.assertEqual(len(chromiumsync.ALL_TYPES) + 2, 134 self.assertEqual(expected_count, version) 135 self.assertEqual(expected_count, len(changes)) 136 self.assertEqual('google_chrome', changes[0].server_defined_unique_tag) [all …]
|
D | xmppserver_test.py | 18 self.assertEqual(xml.toxml(), xml_text) 24 self.assertEqual(xml, xml) 25 self.assertEqual(xml_clone, xml_clone) 33 self.assertEqual(xml.parentNode, None) 35 self.assertEqual(xml_clone.toxml(), xml_text) 50 self.assertEqual(len(self.stanzas), 0) 52 self.assertEqual(self.stanzas[0], '<foo/>') 53 self.assertEqual(self.stanzas[1], '<bar/>') 58 self.assertEqual(len(self.stanzas), 0) 60 self.assertEqual(self.stanzas[0], [all …]
|
/external/markdown/ |
D | regression-tests.py | 24 self.assertEqual(self.md.convert(''), '') 28 self.assertEqual(self.md.convert(' '), '') 32 self.assertEqual(self.md.convert('foo'), '<p>foo</p>') 46 self.assertEqual(markdown.etree.tostring(root), "<div><p>foo</p></div>") 54 self.assertEqual(markdown.etree.tostring(tree.getroot()), 66 self.assertEqual(self.state, []) 71 self.assertEqual(self.state, ['a_state']) 73 self.assertEqual(self.state, ['a_state', 'state2']) 77 self.assertEqual(self.state.isstate('anything'), False) 79 self.assertEqual(self.state.isstate('a_state'), True) [all …]
|
/external/webkit/Tools/Scripts/webkitpy/common/config/ |
D | committers_unittest.py | 40 self.assertEqual(committer_list.committer_by_email('one@test.com'), committer) 41 self.assertEqual(committer_list.reviewer_by_email('two@test.com'), reviewer) 42 self.assertEqual(committer_list.committer_by_email('two@test.com'), reviewer) 43 self.assertEqual(committer_list.committer_by_email('two@rad.com'), reviewer) 44 self.assertEqual(committer_list.reviewer_by_email('so_two@gmail.com'), reviewer) 47 self.assertEqual(committer_list.committer_by_name("Test One"), committer) 48 self.assertEqual(committer_list.committer_by_name("Test Two"), reviewer) 49 self.assertEqual(committer_list.committer_by_name("Test Three"), None) 52 …self.assertEqual(committer_list.committer_by_email('two@rad.com').bugzilla_email(), 'two@test.com') 55 self.assertEqual(committer_list.reviewer_by_email('one@test.com'), None) [all …]
|
/external/chromium/chrome/common/extensions/docs/examples/extensions/proxy_configuration/test/ |
D | proxy_form_controller_test.js | 152 this.assertEqual( 170 this.assertEqual( 188 this.assertEqual( 206 this.assertEqual( 281 this.assertEqual('socks5', single.scheme); 282 this.assertEqual('singleproxy.example.com', single.host); 283 this.assertEqual(1234, single.port); 292 this.assertEqual( 314 this.assertEqual('https', single.scheme); 315 this.assertEqual('example.com', single.host); [all …]
|
/external/webkit/Tools/Scripts/webkitpy/common/net/buildbot/ |
D | buildbot_unittest.py | 62 self.assertEqual(regression_window.build_before_failure().revision(), 1003) 63 self.assertEqual(regression_window.failing_build().revision(), 1004) 66 self.assertEqual(regression_window.build_before_failure(), None) 67 self.assertEqual(regression_window.failing_build().revision(), 1008) 72 self.assertEqual(regression_window.build_before_failure(), None) 73 self.assertEqual(regression_window.failing_build(), None) 78 self.assertEqual(regression_window.build_before_failure().revision(), 1009) 79 self.assertEqual(regression_window.failing_build().revision(), 1010) 84 self.assertEqual(regression_window.build_before_failure().revision(), 1003) 85 self.assertEqual(regression_window.failing_build().revision(), 1004) [all …]
|
/external/webkit/Tools/Scripts/webkitpy/common/checkout/ |
D | api_unittest.py | 123 self.assertEqual(commit_message.message(), self.expected_commit_message) 130 self.assertEqual(changelog_path, "foo") 131 self.assertEqual(revision, "bar") 140 self.assertEqual(entry.contents(), _changelog1entry1) 160 self.assertEqual(len(entries), 1) 161 self.assertEqual(entries[0], 'foo') 169 self.assertEqual(commitinfo.bug_id(), 36629) 170 self.assertEqual(commitinfo.author_name(), u"Tor Arne Vestb\u00f8") 171 self.assertEqual(commitinfo.author_email(), "vestbo@webkit.org") 172 self.assertEqual(commitinfo.reviewer_text(), None) [all …]
|
D | commitinfo_unittest.py | 52 self.assertEqual(commit.revision(), 123) 53 self.assertEqual(commit.bug_id(), 1234) 54 self.assertEqual(commit.author_name(), "Committer") 55 self.assertEqual(commit.author_email(), "author@example.com") 56 self.assertEqual(commit.author(), author) 57 self.assertEqual(commit.reviewer_text(), "Reviewer") 58 self.assertEqual(commit.reviewer(), reviewer) 59 self.assertEqual(commit.committer(), committer) 60 self.assertEqual(commit.committer_email(), "committer@example.com") 61 self.assertEqual(commit.responsible_parties(), set([author, committer, reviewer]))
|
/external/webkit/Tools/Scripts/webkitpy/layout_tests/ |
D | rebaseline_chromium_webkit_tests_unittest.py | 154 self.assertEqual(port_obj, None) 176 self.assertEqual(options.tolerance, 0) 180 self.assertEqual(options.tolerance, 0) 214 self.assertEqual(len(filesystem.written_files), 1) 221 self.assertEqual(set(['failures/expected/image.html']), rebaseliner._rebaselining_tests) 242 self.assertEqual(len(filesystem.written_files), 12) 243 …self.assertEqual(filesystem.files['/test.checkout/LayoutTests/platform/test-mac-leopard/failures/e… 244 …self.assertEqual(filesystem.files['/test.checkout/LayoutTests/platform/test-mac-leopard/failures/e… 245 …self.assertEqual(filesystem.files['/test.checkout/LayoutTests/platform/test-mac-leopard/failures/e… 254 self.assertEqual(len(filesystem.written_files), 12) [all …]
|
/external/llvm/utils/lit/lit/ |
D | ShUtil.py | 256 self.assertEqual(self.lex('a|b>c&d<e'), 261 self.assertEqual(self.lex('a2>c'), 263 self.assertEqual(self.lex('a 2>c'), 267 self.assertEqual(self.lex(""" 'a' """), 269 self.assertEqual(self.lex(""" "hello\\"world" """), 271 self.assertEqual(self.lex(""" "hello\\'world" """), 273 self.assertEqual(self.lex(""" "hello\\\\world" """), 275 self.assertEqual(self.lex(""" he"llo wo"rld """), 277 self.assertEqual(self.lex(""" a\\ b a\\\\b """), 279 self.assertEqual(self.lex(""" "" "" """), [all …]
|
/external/webkit/Tools/Scripts/webkitpy/common/ |
D | memoized_unittest.py | 51 self.assertEqual(test.memoized_add(1), 2) 52 self.assertEqual(test.callCount, 1) 53 self.assertEqual(test.memoized_add(1), 2) 54 self.assertEqual(test.callCount, 1) 57 self.assertEqual(test.memoized_add(2), 3) 58 self.assertEqual(test.callCount, 2) 64 self.assertEqual(tearoff(4), 5) 65 self.assertEqual(test.callCount, 1)
|