/external/chromium_org/tools/telemetry/telemetry/page/ |
H A D | page_filter_unittest.py | 13 def __init__(self, page_filter_include, page_filter_exclude): 14 self.page_filter = page_filter_include 15 self.page_filter_exclude = page_filter_exclude 16 self.page_label_filter = None 17 self.page_label_filter_exclude = None 21 def __init__(self, page_label_filter, page_label_filter_exclude): 22 self.page_filter = None 23 self.page_filter_exclude = None 24 self.page_label_filter = page_label_filter 25 self [all...] |
/external/chromium_org/v8/tools/push-to-trunk/ |
H A D | auto_tag.py | 15 def RunStep(self): 16 self.CommonPrepare() 17 self.PrepareBranch() 18 self.GitCheckout("master") 19 self.GitSVNRebase() 25 def RunStep(self): 26 self.GitCreateBranch(self._config["BRANCHNAME"]) 30 self.GitRemotes()) 33 self["tag [all...] |
/external/lldb/test/functionalities/completion/ |
H A D | TestCompletion.py | 24 def test_at(self): 26 self.complete_from_to('at', 'attach ') 28 def test_de(self): 30 self.complete_from_to('de', 'detach ') 32 def test_process_attach_dash_dash_con(self): 34 self.complete_from_to('process attach --con', 'process attach --continue ') 38 def test_infinite_loop_while_completing(self): 40 self.complete_from_to('process print hello\\', 'process print hello\\', 43 def test_watchpoint_command_dash_w_space(self): 45 self [all...] |
/external/lldb/test/lang/cpp/dynamic-value/ |
H A D | TestCppValueCast.py | 20 def test_value_cast_with_dsym_and_virtual_inheritance(self): 22 self.buildDsym(dictionary=self.d_virtual) 23 self.setTearDownCleanup(dictionary=self.d_virtual) 24 self.do_sbvalue_cast(self.exe_name) 30 def test_value_cast_with_dwarf_and_virtual_inheritance(self): 32 self.buildDwarf(dictionary=self [all...] |
/external/lldb/test/lang/cpp/overloaded-functions/ |
H A D | TestOverloadedFunctions.py | 15 def test_with_dsym_and_run_command(self): 17 self.buildDsym() 18 self.static_method_commands() 21 def test_with_dwarf_and_run_command(self): 23 self.buildDwarf() 24 self.static_method_commands() 26 def setUp(self): 27 TestBase.setUp(self) 28 self.line = line_number('main.cpp', '// breakpoint') 30 def static_method_commands(self) [all...] |
/external/lldb/test/lang/cpp/static_methods/ |
H A D | TestCPPStaticMethods.py | 15 def test_with_dsym_and_run_command(self): 17 self.buildDsym() 18 self.static_method_commands() 22 def test_with_dwarf_and_run_command(self): 24 self.buildDwarf() 25 self.static_method_commands() 27 def setUp(self): 28 TestBase.setUp(self) 29 self.line = line_number('main.cpp', '// Break at this line') 31 def static_method_commands(self) [all...] |
/external/lldb/test/python_api/debugger/ |
H A D | TestDebuggerAPI.py | 15 def test_debugger_api_boundary_condition(self): 17 self.dbg.HandleCommand(None) 18 self.dbg.SetDefaultArchitecture(None) 19 self.dbg.GetScriptingLanguage(None) 20 self.dbg.CreateTarget(None) 21 self.dbg.CreateTarget(None, None, None, True, lldb.SBError()) 22 self.dbg.CreateTargetWithFileAndTargetTriple(None, None) 23 self.dbg.CreateTargetWithFileAndArch(None, None) 24 self.dbg.FindTargetWithFileAndArch(None, None) 25 self [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | browser.py | 30 def __init__(self, backend, platform_backend, archive_path, 35 self._browser_backend = backend 36 self._platform_backend = platform_backend 37 self._wpr_server = None 38 self._local_server_controller = local_server.LocalServerController(backend) 39 self._tabs = tab_list.TabList(backend.tab_list_backend) 40 self.credentials = browser_credentials.BrowserCredentials() 41 self.credentials.credentials_path = credentials_path 42 self._platform_backend.DidCreateBrowser(self, sel [all...] |
/external/chromium_org/tools/json_schema_compiler/ |
H A D | code.py | 9 and |IsEmpty| return self. 11 def __init__(self, indent_size=2, comment_length=80): 12 self._code = [] 13 self._indent_level = 0 14 self._indent_size = indent_size 15 self._comment_length = comment_length 17 def Append(self, line='', substitute=True, indent_level=None): 25 indent_level = self._indent_level 26 self._code.append(Line(((' ' * indent_level) + line).rstrip(), 28 return self [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/platform/ |
H A D | tracing_category_filter.py | 50 def __init__(self, filter_string=None): 51 self._included_categories = set() 52 self._excluded_categories = set() 53 self._disabled_by_default_categories = set() 54 self._synthetic_delays = set() 55 self.contains_wildcards = False 61 self.contains_wildcards = True 69 self._synthetic_delays.add(category) 73 assert not category[1:] in self._included_categories 74 self [all...] |
/external/lldb/examples/summaries/cocoa/ |
H A D | metrics.py | 17 def __init__(self,lbl=None): 18 self.label = "" if lbl is None else lbl 21 def __enter__(self): 23 self.function = str(caller) 24 self.enter_time = time.clock() 26 def __exit__(self, a,b,c): 27 self.exit_time = time.clock() 28 print "It took " + str(self.exit_time - self.enter_time) + " time units to run through " + self [all...] |
/external/lldb/test/lang/c/set_values/ |
H A D | TestSetValues.py | 15 def test_with_dsym(self): 17 self.buildDsym() 18 self.set_values() 21 def test_with_dwarf(self): 23 self.buildDwarf() 24 self.set_values() 26 def setUp(self): 28 TestBase.setUp(self) 30 self.line1 = line_number('main.c', '// Set break point #1.') 31 self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/ |
H A D | rebaseline_unittest.py | 49 def setUp(self): 50 self.tool = MockTool() 51 self.command = self.command_constructor() # lint warns that command_constructor might not be set, but this is intentional; pylint: disable=E1102 52 self.command.bind_to_tool(self.tool) 53 self.lion_port = self.tool.port_factory.get_from_builder_name("WebKit Mac10.7") 54 self.lion_expectations_path = self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/ |
H A D | android.py | 149 def device_cache_directory(self): 150 return self.device_directory() + 'cache/' 152 def device_fonts_directory(self): 153 return self.device_directory() + 'fonts/' 155 def device_forwarder_path(self): 156 return self.device_directory() + 'forwarder' 158 def device_fifo_directory(self): 159 return '/data/data/' + self.package_name() + '/files/' 161 def apk_name(self): 164 def package_name(self) [all...] |
/external/chromium_org/components/cloud_devices/tools/prototype/ |
H A D | prototype.py | 123 def __init__(self, cmd): 126 self.cmd = cmd 127 self.cmd_str = ' '.join(cmd) 128 self.process = None 130 def start(self): 131 print 'Start: ', self.cmd_str 132 if self.process: 133 self.end() 134 self.process = subprocess.Popen(self [all...] |
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/ |
H A D | mock.py | 48 def __init__(self): 49 self._write_data = [] 50 self.remote_addr = 'fake_address' 52 def write(self, data): 55 self._write_data.append(data) 57 def written_data(self): 60 return ''.join(self._write_data) 70 def __init__(self, read_data): 78 _MockConnBase.__init__(self) 79 self [all...] |
/external/chromium_org/tools/perf/page_sets/ |
H A D | tough_video_cases.py | 10 def __init__(self, url, page_set): 11 super(ToughVideoCasesPage, self).__init__(url=url, page_set=page_set) 13 def LoopMixedAudio(self, action_runner): 18 def LoopSingleAudio(self, action_runner): 21 def PlayAction(self, action_runner): 25 def SeekBeforeAndAfterPlayhead(self, action_runner): 40 def __init__(self, page_set): 41 super(Page1, self).__init__( 45 self.add_browser_metrics = True 47 def RunMediaMetrics(self, action_runne [all...] |
/external/chromium_org/chrome/browser/ |
H A D | test_presubmit.py | 32 def setUp(self): 33 SuperMoxTestBase.setUp(self) 35 input_api = self.mox.CreateMockAnything() 37 output_api = self.mox.CreateMockAnything() 38 self.checker = resource_checker.ResourceChecker(input_api, output_api) 40 def ShouldFailIncludeCheck(self, line): 42 error = self.checker.IncludeCheck(1, line) 43 self.assertNotEqual('', error, 46 self.assertTrue('include' in highlight and highlight[0] == '<') 48 def ShouldPassIncludeCheck(self, lin [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
H A D | test_expectations_unittest.py | 40 def __init__(self): 41 self._errors = [] 42 self.turned_off_filtering = False 44 def turn_off_line_filtering(self): 45 self.turned_off_filtering = True 47 def __call__(self, lineno, category, confidence, message): 48 self._errors.append('%s [%s] [%d]' % (message, category, confidence)) 51 def get_errors(self): 52 return ''.join(self._errors) 54 def reset_errors(self) [all...] |
/external/lldb/test/functionalities/command_script/import/ |
H A D | TestImport.py | 14 def test_import_command(self): 16 self.run_test() 18 def setUp(self): 20 TestBase.setUp(self) 22 def run_test(self): 28 self.runCmd('command script delete foo2cmd', check=False) 29 self.runCmd('command script delete foocmd', check=False) 30 self.runCmd('command script delete foobarcmd', check=False) 31 self.runCmd('command script delete barcmd', check=False) 32 self [all...] |
/external/lldb/test/lang/cpp/namespace/ |
H A D | TestNamespace.py | 18 def test_with_dsym_and_run_command(self): 20 self.buildDsym() 21 self.namespace_variable_commands() 26 def test_with_dwarf_and_run_command(self): 28 self.buildDwarf() 29 self.namespace_variable_commands() 31 def setUp(self): 33 TestBase.setUp(self) 35 self.line_var_i = line_number('main.cpp', 37 self [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | object_store_creator_test.py | 13 def __init__(self): pass 16 def setUp(self): 17 self._creator = ObjectStoreCreator(start_empty=False, 21 def testVanilla(self): 22 store = self._creator.Create(_FooClass) 23 self.assertEqual( 26 self.assertFalse(store.start_empty) 28 def testWithCategory(self): 29 store = self._creator.Create(_FooClass, category='hi') 30 self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/ |
H A D | host_mock.py | 40 def __init__(self, log_executive=False, executive_throws_when_run=None, initialize_scm_by_default=True, web=None, scm=None): 41 MockSystemHost.__init__(self, log_executive, executive_throws_when_run) 42 add_unit_tests_to_mock_filesystem(self.filesystem) 43 self.web = web or MockWeb() 45 self._scm = scm 49 self.initialize_scm() 50 self.buildbot = MockBuildBot() 51 self._chromium_buildbot = MockBuildBot() 55 self.port_factory = PortFactory(self) [all...] |
/external/chromium_org/tools/memory_inspector/memory_inspector/core/ |
H A D | symbol.py | 9 def __init__(self): 10 self.symbols = {} # 'foo.so+0x1234' -> |Symbol| 12 def Add(self, exec_file_rel_path, offset, symbol): 14 self.symbols[Symbols._GetKey(exec_file_rel_path, offset)] = symbol 16 def Lookup(self, exec_file_rel_path, offset): 17 return self.symbols.get(Symbols._GetKey(exec_file_rel_path, offset)) 19 def Merge(self, other): 21 self.symbols.update(other.symbols) # pylint: disable=W0212 23 def __len__(self): 24 return len(self [all...] |
/external/lldb/test/api/multithreaded/ |
H A D | TestMultithreaded.py | 13 def setUp(self): 14 TestBase.setUp(self) 15 self.lib_dir = os.environ["LLDB_LIB_DIR"] 16 self.inferior = 'inferior_program' 17 if self.getArchitecture() != "i386": 18 self.buildProgram('inferior.cpp', self.inferior) 19 self.addTearDownHook(lambda: os.remove(self.inferior)) 24 def test_breakpoint_callback(self) [all...] |