Searched refs:self (Results 251 - 275 of 4083) sorted by last modified time

<<11121314151617181920>>

/external/protobuf/python/google/protobuf/
H A Dreflection.py362 def init(self, **kwargs):
363 self._cached_byte_size = 0
364 self._cached_byte_size_dirty = False
365 self._fields = {}
366 self._is_present_in_parent = False
367 self._listener = message_listener_mod.NullMessageListener()
368 self._listener_for_children = _Listener(self)
375 copy = field._default_constructor(self)
381 self
[all...]
H A Dservice.py65 def CallMethod(self, method_descriptor, rpc_controller,
93 def GetRequestClass(self, method_descriptor):
108 def GetResponseClass(self, method_descriptor):
132 def Reset(self):
140 def Failed(self):
150 def ErrorText(self):
154 def StartCancel(self):
167 def SetFailed(self, reason):
178 def IsCanceled(self):
187 def NotifyOnCancel(self, callbac
[all...]
H A Dservice_reflection.py124 def __init__(self, service_descriptor):
131 self.descriptor = service_descriptor
133 def BuildService(self, cls):
145 return self._CallMethod(srvc, method_descriptor,
147 self.cls = cls
149 cls.GetDescriptor = staticmethod(lambda: self.descriptor)
151 cls.GetRequestClass = self._GetRequestClass
152 cls.GetResponseClass = self._GetResponseClass
153 for method in self.descriptor.methods:
154 setattr(cls, method.name, self
[all...]
H A Dtext_format.py316 def __init__(self, text_message):
317 self._text_message = text_message
319 self._position = 0
320 self._line = -1
321 self._column = 0
322 self._token_start = None
323 self.token = ''
324 self._lines = deque(text_message.split('\n'))
325 self._current_line = ''
326 self
[all...]
/external/protobuf/python/
H A Dmox.py79 def __init__(self, expected_methods):
93 Error.__init__(self)
94 self._expected_methods = expected_methods
96 def __str__(self):
98 for i, m in enumerate(self._expected_methods)])
109 def __init__(self, unexpected_method, expected):
121 Error.__init__(self)
122 self._unexpected_method = unexpected_method
123 self._expected = expected
125 def __str__(self)
[all...]
H A Dstubout.py34 def __init__(self):
35 self.cache = []
36 self.stubs = []
38 def __del__(self):
39 self.SmartUnsetAll()
40 self.UnsetAll()
42 def SmartSet(self, obj, attr_name, new_attr):
93 self.stubs.append((orig_obj, attr_name, orig_attr))
96 def SmartUnsetAll(self):
102 self
[all...]
/external/protobuf/gtest/build-aux/
H A Dltmain.sh5251 self)
7282 func_warning "\`-dlopen self' is ignored for libtool libraries"
/external/protobuf/gtest/test/
H A Dgtest_break_on_failure_unittest.py102 def RunAndVerify(self, env_var_value, flag_value, expect_seg_fault):
145 self.assert_(has_seg_fault == expect_seg_fault, msg)
147 def testDefaultBehavior(self):
150 self.RunAndVerify(env_var_value=None,
154 def testEnvVar(self):
157 self.RunAndVerify(env_var_value='0',
160 self.RunAndVerify(env_var_value='1',
164 def testFlag(self):
167 self.RunAndVerify(env_var_value=None,
170 self
[all...]
H A Dgtest_color_test.py71 def testNoEnvVarNoFlag(self):
75 self.assert_(not UsesColor('dumb', None, None))
76 self.assert_(not UsesColor('emacs', None, None))
77 self.assert_(not UsesColor('xterm-mono', None, None))
78 self.assert_(not UsesColor('unknown', None, None))
79 self.assert_(not UsesColor(None, None, None))
80 self.assert_(UsesColor('linux', None, None))
81 self.assert_(UsesColor('cygwin', None, None))
82 self.assert_(UsesColor('xterm', None, None))
83 self
[all...]
H A Dgtest_env_var_test.py82 def testEnvVarAffectsFlag(self):
H A Dgtest_filter_unittest.py186 def AssertSetEqual(self, lhs, rhs):
190 self.assert_(elem in rhs, '%s in %s' % (elem, rhs))
193 self.assert_(elem in lhs, '%s in %s' % (elem, lhs))
195 def AssertPartitionIsValid(self, set_var, list_of_sets):
201 self.assertEqual(len(set_var), len(full_partition))
202 self.assertEqual(sets.Set(set_var), sets.Set(full_partition))
204 def AdjustForParameterizedTests(self, tests_to_run):
213 def RunAndVerify(self, gtest_filter, tests_to_run):
216 tests_to_run = self.AdjustForParameterizedTests(tests_to_run)
230 self
[all...]
H A Dgtest_help_test.py90 def TestHelpFlag(self, flag):
95 self.assertEquals(0, exit_code)
96 self.assert_(HELP_REGEX.search(output), output)
98 self.assert_(CATCH_EXCEPTIONS_FLAG in output, output)
99 self.assert_(DEATH_TEST_STYLE_FLAG not in output, output)
101 self.assert_(CATCH_EXCEPTIONS_FLAG not in output, output)
102 self.assert_(DEATH_TEST_STYLE_FLAG in output, output)
104 def testPrintsHelpWithFullFlag(self):
105 self.TestHelpFlag('--help')
107 def testPrintsHelpWithShortFlag(self)
[all...]
H A Dgtest_list_tests_unittest.py103 def RunAndVerify(self, flag_value, expected_output, other_flag):
139 self.assert_(output == expected_output, msg)
141 self.assert_(output != EXPECTED_OUTPUT_NO_FILTER, msg)
143 def testDefaultBehavior(self):
146 self.RunAndVerify(flag_value=None,
150 def testFlag(self):
153 self.RunAndVerify(flag_value='0',
156 self.RunAndVerify(flag_value='1',
160 def testOverrideNonFilterFlags(self):
163 self
[all...]
H A Dgtest_nc_test.py49 def testCompilerError(self):
H A Dgtest_output_test.py235 def RemoveUnsupportedTests(self, test_output):
252 def testOutput(self):
266 self.assert_(golden == output)
269 normalized_golden = RemoveTestCounts(self.RemoveUnsupportedTests(golden))
282 self.assert_(normalized_golden == normalized_actual)
H A Dgtest_shuffle_test.py178 def setUp(self):
181 def testShufflePreservesNumberOfTests(self):
182 self.assertEqual(len(ALL_TESTS), len(SHUFFLED_ALL_TESTS))
183 self.assertEqual(len(ACTIVE_TESTS), len(SHUFFLED_ACTIVE_TESTS))
184 self.assertEqual(len(FILTERED_TESTS), len(SHUFFLED_FILTERED_TESTS))
185 self.assertEqual(len(SHARDED_TESTS), len(SHUFFLED_SHARDED_TESTS))
187 def testShuffleChangesTestOrder(self):
188 self.assert_(SHUFFLED_ALL_TESTS != ALL_TESTS, SHUFFLED_ALL_TESTS)
189 self.assert_(SHUFFLED_ACTIVE_TESTS != ACTIVE_TESTS, SHUFFLED_ACTIVE_TESTS)
190 self
[all...]
H A Dgtest_test_utils.py193 def __init__(self, command, working_dir=None, capture_stderr=True):
230 self.output = p.communicate()[0]
231 self._return_code = p.returncode
242 self.output = p.fromchild.read()
249 self._return_code = -os.WTERMSIG(ret_code)
251 self._return_code = os.WEXITSTATUS(ret_code)
253 if self._return_code < 0:
254 self.terminated_by_signal = True
255 self.exited = False
256 self
[all...]
H A Dgtest_throw_on_failure_test.py83 def RunAndVerify(self, env_var_value, flag_value, should_fail):
126 self.assert_(failed == should_fail, msg)
128 def testDefaultBehavior(self):
131 self.RunAndVerify(env_var_value=None, flag_value=None, should_fail=False)
133 def testThrowOnFailureEnvVar(self):
136 self.RunAndVerify(env_var_value='0',
139 self.RunAndVerify(env_var_value='1',
143 def testThrowOnFailureFlag(self):
146 self.RunAndVerify(env_var_value=None,
149 self
[all...]
H A Dgtest_uninitialized_test.py65 def testExitCodeAndOutput(self):
H A Dgtest_xml_outfiles_test.py67 def setUp(self):
71 self.output_dir_ = os.path.join(gtest_test_utils.GetTempDir(),
73 self.DeleteFilesAndDir()
75 def tearDown(self):
76 self.DeleteFilesAndDir()
78 def DeleteFilesAndDir(self):
80 os.remove(os.path.join(self.output_dir_, GTEST_OUTPUT_1_TEST + ".xml"))
84 os.remove(os.path.join(self.output_dir_, GTEST_OUTPUT_2_TEST + ".xml"))
88 os.rmdir(self.output_dir_)
92 def testOutfile1(self)
[all...]
H A Dgtest_xml_output_unittest.py121 def testNonEmptyXmlOutput(self):
126 self._TestXmlOutput(GTEST_PROGRAM_NAME, EXPECTED_NON_EMPTY_XML, 1)
128 def testEmptyXmlOutput(self):
134 self._TestXmlOutput("gtest_no_test_unittest",
137 def testDefaultOutputFile(self):
155 self.assert_(p.exited)
156 self.assertEquals(0, p.exit_code)
157 self.assert_(os.path.isfile(output_file))
159 def testSuppressedXmlOutput(self):
177 self
[all...]
H A Dgtest_xml_test_utils.py51 def AssertEquivalentNodes(self, expected_node, actual_node):
70 self.assertEquals(Node.CDATA_SECTION_NODE, actual_node.nodeType)
71 self.assertEquals(expected_node.nodeValue, actual_node.nodeValue)
74 self.assertEquals(Node.ELEMENT_NODE, actual_node.nodeType)
75 self.assertEquals(Node.ELEMENT_NODE, expected_node.nodeType)
76 self.assertEquals(expected_node.tagName, actual_node.tagName)
80 self.assertEquals(
86 self.assert_(
90 self.assertEquals(expected_attr.value, actual_attr.value,
94 expected_children = self
[all...]
/external/protobuf/
H A Dltmain.sh3666 self)
5610 func_warning "\`-dlopen self' is ignored for libtool libraries"
/external/owasp/sanitizer/distrib/lib/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/owasp/sanitizer/lib/guava-libraries/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...

Completed in 1735 milliseconds

<<11121314151617181920>>