/external/protobuf/gtest/test/ |
gtest_filter_unittest.py | 186 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.AssertSetEqual(tests_run, tests_to_run [all...] |
/external/webkit/Tools/Scripts/webkitpy/thirdparty/ |
mock.py | 65 def __init__(self, name): 66 self.name = name 68 def __repr__(self): 69 return '<SentinelObject "%s">' % self.name 73 def __init__(self): 74 self._sentinels = {} 76 def __getattr__(self, name): 77 return self._sentinels.setdefault(name, SentinelObject(name)) 99 def __init__(self, spec=None, side_effect=None, return_value=DEFAULT, 101 self._parent = paren [all...] |
/external/webkit/Source/WebCore/bindings/objc/ |
DOMCSS.mm | 129 return [self getPropertyValue:@"azimuth"]; 134 [self setProperty:@"azimuth" value:azimuth priority:@""]; 139 return [self getPropertyValue:@"background"]; 144 [self setProperty:@"background" value:background priority:@""]; 149 return [self getPropertyValue:@"background-attachment"]; 154 [self setProperty:@"background-attachment" value:backgroundAttachment priority:@""]; 159 return [self getPropertyValue:@"background-color"]; 164 [self setProperty:@"background-color" value:backgroundColor priority:@""]; 169 return [self getPropertyValue:@"background-image"]; 174 [self setProperty:@"background-image" value:backgroundImage priority:@""] [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/buildbot/ |
buildbot_unittest.py | 39 def _mock_test_result(self, testname): 42 def _install_fetch_build(self, failure): 45 builder=self.builder, 50 results = [self._mock_test_result(testname) for testname in failure(build_number)] 53 self.builder._fetch_build = _mock_fetch_build 55 def setUp(self): 56 self.buildbot = BuildBot() 57 self.builder = Builder(u"Test Builder \u2661", self.buildbot) 58 self._install_fetch_build(lambda build_number: ["test1", "test2"] [all...] |
/device/ti/panda/audio/test/ |
TestFlinger.py | 37 def __init__(self, TestDict = {}, Logfile = None): 76 self._program = None 77 self._args = None 78 self._timeout = g_default_timeout # Default timeout 79 self._verdict = None 80 self._expect_fail = False 81 self._expect_signal = False 82 self._logfile = Logfile 84 self._proc = None 85 self._time_expire = Non [all...] |
/external/protobuf/python/ |
mox.py | 79 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...] |
/external/sonivox/jet_tools/JetCreator/ |
JetDialogs.py | 41 def __init__(self, panel, ctrlList, callbackClass):
45 self.ctrls = {}
50 self.ctrls[Text] = wx.Button(panel, Id, Lbl, wx.Point(Col, Row), size=Len)
52 self.ctrls[Text].Bind(wx.EVT_BUTTON, getattr(callbackClass, Fct), self.ctrls[Text], id=Id)
54 self.ctrls[Text].SetDefault()
58 self.ctrls[Text] = wx.TextCtrl(panel, Id, "", wx.Point(Col, Row + LBL_OFFSET +3), wx.Size(Len,-1))
60 self.ctrls[Text] = JetSpinOneBased(panel, Id, "", wx.Point(Col, Row + LBL_OFFSET), wx.Size(Len,-1), min=Min, max=Max)
62 self.ctrls[Text] = JetSpin(panel, Id, "", wx.Point(Col, Row + LBL_OFFSET), wx.Size(Len,-1), min=Min, max=Max)
64 self.ctrls[Text] = wx.ComboBox(panel, Id, "", wx.Point(Col, Row + LBL_OFFSET), wx.Size(Len,-1), Lst, wx (…) [all...] |
/dalvik/vm/mterp/ |
Mterp.cpp | 74 void dvmMterpStd(Thread* self) 77 self->interpSave.methodClassDex = self->interpSave.method->clazz->pDvmDex; 81 &self->interpSave.method->prototype); 84 self->interpSave.method->clazz->descriptor, 85 self->interpSave.method->name, 89 //ALOGI("self is %p, pc=%p, fp=%p", self, self->interpSave.pc, 90 // self->interpSave.curFrame) [all...] |
/external/chromium/testing/gtest/test/ |
gtest_catch_exceptions_test.py | 76 def TestSehExceptions(self, test_output): 77 self.assert_('SEH exception with code 0x2a thrown ' 80 self.assert_('SEH exception with code 0x2a thrown ' 83 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()' 85 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()' 87 self.assert_('SEH exception with code 0x2a thrown in SetUp()' 89 self.assert_('SEH exception with code 0x2a thrown in TearDown()' 91 self.assert_('SEH exception with code 0x2a thrown in the test body' 94 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self): 95 self.TestSehExceptions(EX_BINARY_OUTPUT [all...] |
/external/gtest/test/ |
gtest_catch_exceptions_test.py | 76 def TestSehExceptions(self, test_output): 77 self.assert_('SEH exception with code 0x2a thrown ' 80 self.assert_('SEH exception with code 0x2a thrown ' 83 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()' 85 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()' 87 self.assert_('SEH exception with code 0x2a thrown in SetUp()' 89 self.assert_('SEH exception with code 0x2a thrown in TearDown()' 91 self.assert_('SEH exception with code 0x2a thrown in the test body' 94 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self): 95 self.TestSehExceptions(EX_BINARY_OUTPUT [all...] |
/external/linux-tools-perf/util/ |
strlist.c | 15 struct str_node *self = malloc(sizeof(*self)); local 17 if (self != NULL) { 23 self->s = s; 26 return self; 29 free(self); 33 static void str_node__delete(struct str_node *self, bool dupstr) 36 free((void *)self->s); 37 free(self); 40 int strlist__add(struct strlist *self, const char *new_entry 156 struct strlist *self = malloc(sizeof(*self)); local [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
chromium_gpu_unittest.py | 35 def test_get_chromium_gpu_linux(self): 36 self.assertOverridesWorked('chromium-gpu-linux') 38 def test_get_chromium_gpu_mac(self): 39 self.assertOverridesWorked('chromium-gpu-mac') 41 def test_get_chromium_gpu_win(self): 42 self.assertOverridesWorked('chromium-gpu-win') 44 def test_get_chromium_gpu__on_linux(self): 45 self.assertOverridesWorked('chromium-gpu-linux', 'chromium-gpu', 'linux2') 47 def test_get_chromium_gpu__on_mac(self): 48 self.assertOverridesWorked('chromium-gpu-mac', 'chromium-gpu', 'darwin' [all...] |
mock_drt.py | 52 def __init__(self, **kwargs): 56 self.__delegate = factory.get(**kwargs) 57 self.__real_name = prefix + self.__delegate.name() 59 def real_name(self): 60 return self.__real_name 62 def __getattr__(self, name): 63 return getattr(self.__delegate, name) 65 def acquire_http_lock(self): 68 def release_http_lock(self) [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/steps/ |
build.py | 43 def build(self, build_style): 44 self._tool.executive.run_and_throw_if_fail(self._tool.port().build_webkit_command(build_style=build_style), self._options.quiet) 46 def run(self, state): 47 if not self._options.build: 50 if self._options.build_style == "both": 51 self.build("debug") 52 self.build("release") 54 self.build(self._options.build_style [all...] |
cleanworkingdirectory.py | 36 def __init__(self, tool, options, allow_local_commits=False): 37 AbstractStep.__init__(self, tool, options) 38 self._allow_local_commits = allow_local_commits 47 def run(self, state): 48 if not self._options.clean: 53 os.chdir(self._tool.scm().checkout_root) 54 if not self._allow_local_commits: 55 self._tool.scm().ensure_no_local_commits(self._options.force_clean) 56 self._tool.scm().ensure_clean_working_directory(force_clean=self._options.force_clean [all...] |
/external/v8/tools/ |
grokdump.py | 67 def __init__(self, fields): 68 self.fields = fields 69 self.is_flexible = False 72 self.is_flexible = True 74 if not self.is_flexible: 75 self.ctype = Descriptor._GetCtype(fields) 76 self.size = ctypes.sizeof(self.ctype) 78 def Read(self, memory, offset): 79 if self.is_flexible [all...] |
/external/webkit/Source/WebCore/bindings/scripts/test/GObject/ |
WebKitDOMTestObj.h | 50 webkit_dom_test_obj_void_method(WebKitDOMTestObj* self); 53 webkit_dom_test_obj_void_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg); 56 webkit_dom_test_obj_int_method(WebKitDOMTestObj* self); 59 webkit_dom_test_obj_int_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg); 62 webkit_dom_test_obj_obj_method(WebKitDOMTestObj* self); 65 webkit_dom_test_obj_obj_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg); 68 webkit_dom_test_obj_method_that_requires_all_args(WebKitDOMTestObj* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg); 71 webkit_dom_test_obj_method_that_requires_all_args_and_throws(WebKitDOMTestObj* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg, GError **error); 74 webkit_dom_test_obj_serialized_value(WebKitDOMTestObj* self, WebKitDOMSerializedScriptValue* serialized_arg); 77 webkit_dom_test_obj_idb_key(WebKitDOMTestObj* self, WebKitDOMIDBKey* key) [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t002lexer.py | 6 def setUp(self): 7 self.compileGrammar() 10 def lexerClass(self, base): 12 def emitErrorMessage(self, msg): 16 def reportError(self, re): 23 def testValid(self): 25 lexer = self.getLexer(stream) 28 self.failUnlessEqual(token.type, self.lexerModule.ZERO) 31 self.failUnlessEqual(token.type, self.lexerModule.ONE [all...] |
t017parser.py | 6 def setUp(self): 7 self.compileGrammar() 9 def parserClass(self, base): 11 def __init__(self, *args, **kwargs): 12 base.__init__(self, *args, **kwargs) 14 self.reportedErrors = [] 17 def emitErrorMessage(self, msg): 18 self.reportedErrors.append(msg) 23 def testValid(self): 25 lexer = self.getLexer(cStream [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/config/ |
committers_unittest.py | 34 def test_committer_lookup(self): 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' [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/ |
message_broker2_unittest.py | 39 def test__no_body(self): 41 self.assertTrue(repr(msg)) 44 self.assertEqual(new_msg.name, 'message_name') 45 self.assertEqual(new_msg.args, None) 46 self.assertEqual(new_msg.topic_name, 'topic_name') 47 self.assertEqual(new_msg.src, 'src') 49 def test__body(self): 52 self.assertTrue(repr(msg)) 55 self.assertEqual(new_msg.name, 'message_name') 56 self.assertEqual(new_msg.args, ('body', 0) [all...] |
test_expectations.py | 88 def __init__(self, port, tests, expectations, test_config, 105 self._expected_failures = TestExpectationsFile(port, expectations, 114 def get_expectations_json_for_all_platforms(self): 116 self._expected_failures.get_expectations_json_for_all_platforms()) 118 def get_rebaselining_failures(self): 119 return (self._expected_failures.get_test_set(REBASELINE, FAIL) | 120 self._expected_failures.get_test_set(REBASELINE, IMAGE) | 121 self._expected_failures.get_test_set(REBASELINE, TEXT) | 122 self._expected_failures.get_test_set(REBASELINE, 124 self._expected_failures.get_test_set(REBASELINE, AUDIO) [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/checkout/ |
scm.py | 104 def __init__(self, message): 105 self.message_lines = message[first_non_empty_line_after_index(message, 0):] 107 def body(self, lstrip=False): 108 lines = self.message_lines[first_non_empty_line_after_index(self.message_lines, 1):] 113 def description(self, lstrip=False, strip_url=False): 114 line = self.message_lines[0] 121 def message(self): 122 return "\n".join(self.message_lines) + "\n" 126 def __init__(self, script_args, exit_code, output, cwd) [all...] |
diff_parser_unittest.py | 88 def test_diff_parser(self, parser = None): 90 parser = diff_parser.DiffParser(self._PATCH.splitlines()) 91 self.assertEquals(3, len(parser.files)) 93 self.assertTrue('WebCore/rendering/style/StyleFlexibleBoxData.h' in parser.files) 95 self.assertEquals(7, len(diff.lines)) 97 self.assertEquals((47, 47), diff.lines[0][0:2]) 98 self.assertEquals('', diff.lines[0][2]) 99 self.assertEquals((48, 48), diff.lines[1][0:2]) 100 self.assertEquals(' unsigned align : 3; // EBoxAlignment', diff.lines[1][2]) 102 self.assertEquals((50, 0), diff.lines[3][0:2] [all...] |
/development/testrunner/test_defs/ |
host_test.py | 47 def __init__(self): 48 test_suite.AbstractTestSuite.__init__(self) 49 self._jar_name = None 50 self._class_name = None 52 def GetBuildDependencies(self, options): 54 return self._LIB_BUILD_PATHS 56 def GetClassName(self): 57 return self._class_name 59 def SetClassName(self, class_name): 60 self._class_name = class_nam [all...] |