Searched refs:self (Results 251 - 275 of 2825) sorted by relevance

<<11121314151617181920>>

/external/chromium_org/chrome/test/telemetry/chromeos/
H A Dlogin_unittest.py17 def setUp(self):
19 self._cri = cros_interface.CrOSInterface(options.cros_remote,
21 self._is_guest = options.browser_type == 'cros-chrome-guest'
22 self._email = '' if self._is_guest else 'test@test.test'
24 def _IsCryptohomeMounted(self):
26 cryptohomeJSON, _ = self._cri.RunCmdOnDevice(['/usr/sbin/cryptohome',
32 def _CreateBrowser(self, with_autotest_ext):
39 self._load_extension = extension_to_load.ExtensionToLoad(extension_path,
41 options.extensions_to_load = [self
[all...]
/external/chromium_org/tools/json_schema_compiler/
H A Dcode.py9 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-trace/trace-viewer/third_party/pywebsocket/src/test/
H A Dmock.py48 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/telemetry/telemetry/core/timeline/
H A Dthread.py16 def __init__(self, process, tid):
17 super(Thread, self).__init__('thread %s' % tid, parent=process)
18 self.tid = tid
19 self._async_slices = []
20 self._samples = []
21 self._toplevel_slices = []
24 self._open_slices = []
25 self._newly_added_slices = []
28 def toplevel_slices(self):
29 return self
[all...]
/external/chromium/googleurl/
H A DPRESUBMIT_unittest.py17 def __init__(self):
18 self.affected_files = []
19 self.re = re
20 self.os_path = os.path
22 def AffectedFiles(self):
23 return self.affected_files
25 def AffectedTextFiles(self, include_deletes=True):
26 return self.affected_files
30 def __init__(self, path):
31 self
[all...]
/external/chromium_org/chrome/test/functional/
H A Dchromeos_onc.py25 def setUp(self):
26 self.CleanupFlimflamDirsOnChromeOS()
27 policy_base.PolicyTestBase.setUp(self)
28 self.LoginWithTestAccount()
30 def _ReadONCFileAndSet(self, filename):
37 with open(os.path.join(self.ONC_PATH, filename)) as fp:
38 self.SetUserPolicy({'OpenNetworkConfiguration': fp.read()})
40 def _VerifyRememberedWifiNetworks(self, wifi_expect):
50 self.WaitUntil(lambda: not self
[all...]
H A Dchromeos_oobe.py24 def ShouldOOBESkipToLogin(self):
28 def setUp(self):
34 pyauto.PyUITest.setUp(self)
36 def _AssertCurrentScreen(self, screen_name):
42 self.assertEqual(screen_name, self.GetOOBEScreenInfo()['screen_name'])
44 def testBasicFlow(self):
46 self._AssertCurrentScreen('network')
48 ret = self.AcceptOOBENetworkScreen()
49 if self
[all...]
H A Dchromeos_vpn.py21 def _PingTest(self, hostname, timeout=10):
31 def testCanAddNetwork(self):
37 self.assertTrue(os.path.exists(vpn_info_file))
38 vpn = self.EvalDataFrom(vpn_info_file)
41 self.NetworkScan()
42 self.WaitUntilWifiNetworkAvailable(vpn['wifi'])
43 wifi_vpn = self.GetServicePath(vpn['wifi'])
44 self.assertTrue(wifi_vpn)
45 self.assertTrue(self
[all...]
H A Dgpu.py16 def _GetGpuPID(self):
18 child_processes = self.GetBrowserInfo()['child_processes']
24 def _IsHardwareAccelerated(self, feature):
26 self.NavigateToURL('about:gpu')
37 return self.ExecuteJavascript(js)
38 self.assertTrue(self.WaitUntil(IsFeatureStatusLoaded, 10))
40 find_result = self.FindInPage(search)['match_count']
46 self.RestartBrowser()
52 def _VerifyGPUProcessOnPage(self, ur
[all...]
H A Dwebrtc_brutality_test.py13 def testReloadsAfterGetUserMedia(self):
23 if self.PlatformIsWinXP():
26 self.LoadTestPageInOneTab()
29 self.GetUserMedia(tab_index=0, action='accept')
31 self._GetUserMediaWithoutTakingAction(tab_index=0)
32 self.ReloadTab(tab_index=0)
34 def testRepeatedGetUserMediaRequests(self):
39 if self.PlatformIsWinXP():
42 self.LoadTestPageInOneTab()
45 self
[all...]
H A Dntp.py50 def Debug(self):
58 self.pprint(self._GetNTPInfo())
60 def __init__(self, methodName='runTest'):
61 super(NTPTest, self).__init__(methodName)
66 urls = map(lambda name: self.GetFileURLForDataPath(name), filenames)
67 self.PAGES = map(lambda url, title: {'url': url, 'title': title},
70 def _NTPContainsThumbnail(self, check_thumbnail):
73 for thumbnail in self.GetNTPThumbnails():
78 def testFreshProfile(self)
[all...]
/external/chromium_org/chrome/test/pyautolib/chromeos/
H A Dfile_browser.py13 executor = pyauto.PyUITest.JavascriptExecutorInTab(self)
14 file_browser = chromeos.file_browser.FileBrowser(self, executor)
22 def __init__(self, ui_test, executor):
29 self._ui_test = ui_test
30 self.executor = executor
32 def Select(self, name):
44 return self.executor.Execute(script)
46 def DirectoryContents(self):
55 list = json.loads(self.executor.Execute(script))
58 def Save(self, nam
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/
H A Dtest_expectations_unittest.py40 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/chromium_org/chrome/common/extensions/docs/server2/
H A Dobject_store_creator_test.py13 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...]
H A Drietveld_patcher_test.py17 def setUp(self):
19 self._patcher = RietveldPatcher(
24 def _ReadLocalFile(self, filename):
32 def _ApplySingle(self, path, binary=False):
33 return self._patcher.Apply([path], None, binary).Get()[path]
35 def testGetVersion(self):
36 self.assertEqual(self._patcher.GetVersion(), '22002')
38 def testGetPatchedFiles(self):
39 added, deleted, modified = self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/config/
H A Dports.py45 def name(self):
46 return self.__class__
48 def flag(self):
49 if self.port_flag_name:
50 return "--port=%s" % self.port_flag_name
54 def script_path(self, script_name):
57 def script_shell_command(self, script_name):
58 script_path = self.script_path(script_name)
70 def makeArgs(self):
77 def check_webkit_style_command(self)
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/steps/
H A Dabstractstep.py36 def __init__(self, tool, options):
37 self._tool = tool
38 self._options = options
40 def _exit(self, code):
43 def _changed_files(self, state):
44 return self.cached_lookup(state, "changed_files")
48 "bug": lambda self, state: self._tool.bugs.fetch_bug(state["bug_id"]),
50 "bug_title": lambda self, state: self
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dtab.py19 def __init__(self, inspector_backend):
20 super(Tab, self).__init__(inspector_backend)
22 def __del__(self):
23 super(Tab, self).__del__()
26 def browser(self):
28 return self._inspector_backend.browser
31 def url(self):
32 return self._inspector_backend.url
35 def dom_stats(self):
45 dom_counters = self
[all...]
H A Dweb_contents.py11 def __init__(self, inspector_backend):
12 self._inspector_backend = inspector_backend
14 def __del__(self):
15 self.Disconnect()
17 def Disconnect(self):
18 self._inspector_backend.Disconnect()
20 def Close(self):
25 self._inspector_backend.Close()
27 def WaitForDocumentReadyStateToBeComplete(self,
29 self
[all...]
/external/chromium_org/tools/playback_benchmark/
H A Dproxy_handler.py29 def __init__(self, rfile, wfile, server):
30 self.rfile = rfile
31 self.wfile = wfile
32 self.server = server
34 def ReadRequest(self):
35 "Reads and parses single HTTP request from self.rfile"
37 self.raw_requestline = self.rfile.readline()
38 if not self.raw_requestline:
39 self
[all...]
/external/chromium_org/tools/telemetry/telemetry/page/actions/
H A Dseek_unittest.py15 def setUp(self):
16 tab_test_case.TabTestCase.setUp(self)
17 self._browser.SetHTTPServerDirectories(util.GetUnittestDataDir())
18 self._tab.Navigate(self._browser.http_server.UrlOf('video_test.html'))
19 self._tab.WaitForDocumentReadyStateToBeComplete()
21 def testSeekWithNoSelector(self):
25 action.WillRunAction(None, self._tab)
26 action.RunAction(None, self._tab, None)
28 self
[all...]
/external/llvm/utils/lit/lit/
H A DShCommands.py2 def __init__(self, args, redirects):
3 self.args = list(args)
4 self.redirects = list(redirects)
6 def __repr__(self):
7 return 'Command(%r, %r)' % (self.args, self.redirects)
9 def __eq__(self, other):
13 return ((self.args, self.redirects) ==
16 def toShell(self, fil
[all...]
/external/chromium_org/tools/grit/grit/format/policy_templates/
H A Dpolicy_template_generator_unittest.py22 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/eigen/debug/gdb/
H A Dprinters.py37 def __init__(self, variety, val):
41 self.variety = variety
47 self.type = type.unqualified().strip_typedefs()
48 tag = self.type.tag
55 self.rows = val['m_storage']['m_rows']
57 self.rows = int(template_params[1])
60 self.cols = val['m_storage']['m_cols']
62 self.cols = int(template_params[2])
64 self.options = 0 # default value
66 self
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dgenk-timing.py8 def __init__(self, scriptname, outputname):
9 self.timeFile = outputname
10 self.shfile = open(scriptname, 'w')
11 self.shfile.write("echo \"\" > %s\n" % self.timeFile)
13 def writeTimingCall(self, filename, numFuncs, funcsCalled, totalCalls):
18 self.shfile.write("echo \"%s: Calls %d of %d functions, %d total\" >> %s\n" % (filename, funcsCalled, numFuncs, totalCalls, self.timeFile))
19 self.shfile.write("echo \"\" >> %s\n" % self
[all...]

Completed in 2855 milliseconds

<<11121314151617181920>>