/external/chromium_org/tools/telemetry/telemetry/core/backends/webdriver/ |
H A D | webdriver_tab_backend.py | 11 def __init__(self, browser_backend, window_handle): 12 self._browser_backend = browser_backend 13 self._window_handle = window_handle 16 def browser(self): 17 return self._browser_backend.browser 20 def window_handle(self): 21 return self._window_handle 24 def url(self): 25 self._browser_backend.driver.switch_to_window(self [all...] |
/external/lldb/test/functionalities/data-formatter/rdar-9974002/ |
H A D | Test-rdar-9974002.py | 18 def test_with_dsym_and_run_command(self): 20 self.buildDsym() 21 self.data_formatter_commands() 24 def test_with_dwarf_and_run_command(self): 26 self.buildDwarf() 27 self.data_formatter_commands() 29 def setUp(self): 31 TestBase.setUp(self) 33 self.line = line_number('main.cpp', '// Set break point at this line.') 35 def data_formatter_commands(self) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/ |
H A D | scm_mock.py | 36 def __init__(self, filesystem=None, executive=None): 37 self.checkout_root = "/mock-checkout/third_party/WebKit" 38 self.added_paths = set() 39 self._filesystem = filesystem or MockFileSystem() 40 self._executive = executive or MockExecutive() 42 def add(self, destination_path, return_exit_code=False): 43 self.add_list([destination_path], return_exit_code) 45 def add_list(self, destination_paths, return_exit_code=False): 46 self.added_paths.update(set(destination_paths)) 50 def has_working_directory_changes(self) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/ |
H A D | memoized.py | 36 def __init__(self, function): 37 self._function = function 38 self._results_cache = {} 40 def __call__(self, *args): 42 return self._results_cache[args] 45 result = self._function(*args) 46 self._results_cache[args] = result 53 def __get__(self, instance, owner): 54 # Return a function partial with obj already bound as self. 55 return functools.partial(self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
H A D | common_unittest.py | 45 def setUp(self): 46 self._style_errors = [] # The list of accumulated style errors. 48 def _mock_style_error_handler(self, line_number, category, confidence, 52 self._style_errors.append(error) 54 def assert_carriage_return(self, input_lines, expected_lines, error_lines): 56 handle_style_error = self._mock_style_error_handler 62 self.assertEqual(output_lines, expected_lines) 64 expected_errors = [(line_number, self._category, self._confidence, 65 self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/ |
H A D | error_handlers.py | 31 __call__(self, line_number, category, confidence, message): 59 def __init__(self, file_path, configuration, increment_error_count, 80 self._file_path = file_path 81 self._configuration = configuration 82 self._increment_error_count = increment_error_count 83 self._line_numbers = line_numbers 87 self._category_totals = {} 90 def __eq__(self, other): 92 if self._configuration != other._configuration: 94 if self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/ |
H A D | reflectionhandler_unittest.py | 37 def __init__(self): 38 self.static_files_served = set() 39 self.errors_sent = set() 40 self.functions_run = set() 42 def _serve_static_file(self, name): 43 self.static_files_served.add(name) 45 def send_error(self, code, description): 46 self.errors_sent.add(code) 48 def function_one(self): 49 self [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/backends/ |
H A D | browser_backend.py | 18 def __init__(self, supports_extensions, browser_options, tab_list_backend): 20 self.browser_type = browser_options.browser_type 21 self._supports_extensions = supports_extensions 22 self.browser_options = browser_options 23 self._browser = None 24 self._tab_list_backend_class = tab_list_backend 25 self._forwarder_factory = None 27 def AddReplayServerOptions(self, extra_wpr_args): 30 def SetBrowser(self, browser): 31 self [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | local_server_unittest.py | 13 def do_GET(self): 20 self.send_response(200) 21 self.send_header('Content-Type', 'text/html') 22 self.send_header('Content-Length', len(msg)) 23 self.end_headers() 24 self.wfile.write(msg) 26 def log_request(self, code='-', size='-'): 31 def __init__(self): 33 self, ('127.0.0.1', 0), SimpleLocalServerBackendRequestHandler) 34 local_server.LocalServerBackend.__init__(self) [all...] |
/external/chromium_org/tools/telemetry/telemetry/page/actions/ |
H A D | navigate.py | 8 def __init__(self, url, script_to_evaluate_on_commit=None, 10 super(NavigateAction, self).__init__() 12 self._url = url 13 self._script_to_evaluate_on_commit = script_to_evaluate_on_commit 14 self._timeout_in_seconds = timeout_in_seconds 16 def RunAction(self, tab): 17 tab.Navigate(self._url, 18 self._script_to_evaluate_on_commit, 19 self._timeout_in_seconds)
|
/external/chromium_org/tools/telemetry/telemetry/timeline/ |
H A D | tracing_timeline_data.py | 11 def __init__(self, event_data): 12 super(TracingTimelineData, self).__init__() 13 self._event_data = event_data 15 def Serialize(self, f): 17 if 'traceEvents' in self._event_data: 18 json.dump(self._event_data, f, indent=4) 20 json.dump({'traceEvents' : self._event_data}, f, indent=4) 22 def EventData(self): 23 return self._event_data
|
/external/lldb/test/lang/c/stepping/ |
H A D | TestThreadStepping.py | 18 def test_step_out_with_dsym_and_run_command(self): 20 self.buildDwarf() 21 self.thread_step_out() 24 def test_step_out_with_dwarf_and_run_command(self): 26 self.buildDwarf() 27 self.thread_step_out() 29 def setUp(self): 31 TestBase.setUp(self) 33 self.line1 = line_number('main.c', '// Find the line number of function "c" here.') 34 self [all...] |
/external/srec/srec/Nametag/src/ |
H A D | Nametags.c | 23 ESR_ReturnCode SR_NametagsLoad(SR_Nametags* self, const LCHAR* filename) argument 25 if (self == NULL) 30 return self->load(self, filename); 33 ESR_ReturnCode SR_NametagsSave(SR_Nametags* self, const LCHAR* filename) argument 35 if (self == NULL) 40 return self->save(self, filename); 43 ESR_ReturnCode SR_NametagsAdd(SR_Nametags* self, SR_Nametag* nametag) argument 45 if (self 53 SR_NametagsRemove(SR_Nametags* self, const LCHAR* id) argument 63 SR_NametagsGetSize(SR_Nametags* self, size_t* result) argument 73 SR_NametagsGet(SR_Nametags* self, const LCHAR* id, SR_Nametag** nametag) argument 83 SR_NametagsGetAtIndex(SR_Nametags* self, size_t index, SR_Nametag** nametag) argument 93 SR_NametagsContains(SR_Nametags* self, const LCHAR* id, ESR_BOOL* result) argument 103 SR_NametagsDestroy(SR_Nametags* self) argument [all...] |
/external/chromium_org/sync/tools/testserver/ |
H A D | sync_testserver.py | 33 def __init__(self, server_address, xmpp_port, request_handler_class): 34 testserver_base.StoppableHTTPServer.__init__(self, 37 self._sync_handler = chromiumsync.TestServer() 38 self._xmpp_socket_map = {} 39 self._xmpp_server = xmppserver.XmppServer( 40 self._xmpp_socket_map, ('localhost', xmpp_port)) 41 self.xmpp_port = self._xmpp_server.getsockname()[1] 42 self.authenticated = True 44 def GetXmppServer(self) [all...] |
H A D | xmppserver.py | 31 def __init__(self, xml_element): 33 Error.__init__(self, 'Unexpected XML element', xml_text) 82 def __init__(self, ...): 84 self._parser = StanzaParser(self) 87 def SomeFunction(self, ...): 89 self._parser.FeedString(some_data) 92 def FeedStanza(self, stanza): 121 def __init__(self, delegate): 122 self [all...] |
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/ |
H A D | adml_writer_unittest.py | 23 def setUp(self): 29 self.writer = adml_writer.GetWriter(config) 30 self.writer.messages = { 40 self.writer.Init() 42 def _InitWriterForAddingPolicyGroups(self, writer): 49 def _InitWriterForAddingPolicies(self, writer, policy): 54 self._InitWriterForAddingPolicyGroups(writer) 64 self.writer._string_table_elem.getElementsByTagName('string') 66 self.writer._string_table_elem.removeChild(elem) 68 def testEmpty(self) [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/ |
H A D | inspector_network.py | 16 def __init__(self, inspector_network, params): 17 self._inspector_network = inspector_network 18 self._request_id = params['requestId'] 19 self._timestamp = params['timestamp'] 21 self._response = params['response'] 22 if not self._response: 26 headers = self._response['headers'] 27 self._header_map = {} 30 self._header_map[k.title()] = v 33 self [all...] |
/external/lldb/test/functionalities/data-formatter/data-formatter-categories/ |
H A D | TestDataFormatterCategories.py | 17 def test_with_dsym_and_run_command(self): 19 self.buildDsym() 20 self.data_formatter_commands() 23 def test_with_dwarf_and_run_command(self): 25 self.buildDwarf() 26 self.data_formatter_commands() 28 def setUp(self): 30 TestBase.setUp(self) 32 self.line = line_number('main.cpp', '// Set break point at this line.') 34 def data_formatter_commands(self) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/ |
H A D | filesystem_unittest.py | 46 def setup_generic_test_dir(self): 47 fs = self.fs 48 self.generic_test_dir = str(self.fs.mkdtemp()) 49 self.orig_cwd = fs.getcwd() 50 fs.chdir(self.generic_test_dir) 55 fs.chdir(self.orig_cwd) 57 def teardown_generic_test_dir(self): 58 self.fs.rmtree(self [all...] |
/external/chromium_org/tools/telemetry/telemetry/unittest/ |
H A D | system_stub.py | 17 def __init__(self, base_module, module_list): 29 self.adb_commands = None 30 self.os = None 31 self.subprocess = None 32 self.sys = None 34 self._base_module = base_module 35 self._overrides = {} 38 self._overrides[module_name] = getattr(base_module, module_name, None) 39 setattr(self, module_name, stubs[module_name]()) 40 setattr(base_module, module_name, getattr(self, module_nam [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | servlet.py | 10 def __init__(self, dict_): 12 self._dict = dict_ 14 self._dict = dict((k.lower(), v) for k, v in dict_.iteritems()) 16 def get(self, key, default=None): 17 return self._dict.get(key.lower(), default) 19 def __repr__(self): 20 return repr(self._dict) 22 def __str__(self): 23 return repr(self._dict) 29 def __init__(self, pat [all...] |
/external/chromium_org/media/ |
H A D | PRESUBMIT_test.py | 11 def __init__(self): 12 self.re = re 13 self.os_path = os.path 14 self.files = [] 15 self.is_committing = False 17 def AffectedFiles(self): 18 return self.files 20 def AffectedSourceFiles(self, fn): 22 return self.files 24 def ReadFile(self, [all...] |
/external/chromium_org/tools/grit/grit/format/policy_templates/ |
H A D | policy_template_generator_unittest.py | 22 def do_test(self, policy_data, writer): 38 writer.tester = self 57 def testSequence(self): 61 def __init__(self): 62 self.log = 'init;' 63 def Init(self): 64 self.log += 'prepare;' 65 def BeginTemplate(self): 66 self.log += 'begin;' 67 def EndTemplate(self) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/ |
H A D | server_base.py | 48 def __init__(self, port_obj, output_dir): 49 self._port_obj = port_obj 50 self._executive = port_obj._executive 51 self._filesystem = port_obj._filesystem 52 self._platform = port_obj.host.platform 53 self._output_dir = output_dir 60 if self._platform.is_mac(): 63 self._runtime_path = self._filesystem.join(tmpdir, "WebKit") 64 self [all...] |
/external/lldb/test/functionalities/thread/state/ |
H A D | TestThreadStates.py | 17 def test_state_after_breakpoint_with_dsym(self): 19 self.buildDsym(dictionary=self.getBuildFlags(use_cpp11=False)) 20 self.thread_state_after_breakpoint_test() 23 def test_state_after_breakpoint_with_dwarf(self): 25 self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False)) 26 self.thread_state_after_breakpoint_test() 30 def test_state_after_continue_with_dsym(self): 32 self [all...] |