Searched refs:self (Results 276 - 300 of 4083) sorted by relevance

<<11121314151617181920>>

/external/chromium_org/third_party/google_appengine_cloudstorage/cloudstorage/
H A Dstorage_api.py95 def __getstate__(self):
101 return (super(_StorageApi, self).__getstate__(), {'api_url': self.api_url})
103 def __setstate__(self, state):
110 super(_StorageApi, self).__setstate__(superstate)
111 self.api_url = localstate['api_url']
115 def do_request_async(self, url, method='GET', headers=None, payload=None,
127 resp_tuple = yield super(_StorageApi, self).do_request_async(
137 def post_object_async(self, path, **kwds):
139 return self
[all...]
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
H A Dlintrunner.py26 def __init__(self):
27 if self.__class__ == LintRunner:
30 def Run(self, filenames, error_handler):
/external/chromium_org/build/android/pylib/perf/
H A Dsurface_stats_collector_unittest.py25 def setUp(self):
26 self.refresh_period = 0.1
28 def testOneFrameDelta(self):
29 timestamps = self._CreateUniformTimestamps(0, 10, self.refresh_period)
30 results = self._CreateDictionaryFromResults(
32 self.refresh_period, timestamps, ''))
34 self.assertEquals(results['avg_surface_fps'].value,
35 int(round(1 / self.refresh_period)))
36 self
[all...]
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dobject_store.py11 def Get(self, key):
15 return self.GetMulti((key,)).Then(lambda keys: keys.get(key))
17 def GetMulti(self, keys):
21 raise NotImplementedError(self.__class__)
23 def Set(self, key, value):
26 self.SetMulti({ key: value })
28 def SetMulti(self, items):
31 raise NotImplementedError(self.__class__)
33 def Del(self, key):
36 self
[all...]
H A Dtest_object_store.py14 def __init__(self, namespace, start_empty=False, init=None):
15 self.namespace = namespace
16 self.start_empty = start_empty
17 self._store = {} if init is None else init
19 assert not self._store
20 self._get_count = 0
21 self._set_count = 0
22 self._del_count = 0
28 def GetMulti(self, keys):
30 self
[all...]
/external/chromium_org/testing/gtest/test/
H A Dgtest_catch_exceptions_test.py89 def TestSehExceptions(self, test_output):
90 self.assert_('SEH exception with code 0x2a thrown '
93 self.assert_('SEH exception with code 0x2a thrown '
96 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()'
98 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()'
100 self.assert_('SEH exception with code 0x2a thrown in SetUp()'
102 self.assert_('SEH exception with code 0x2a thrown in TearDown()'
104 self.assert_('SEH exception with code 0x2a thrown in the test body'
107 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self):
108 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/
H A Dscm.py42 # SCM methods are expected to return paths relative to self.checkout_root.
44 def __init__(self, cwd, executive=None, filesystem=None):
45 self.cwd = cwd
46 self._executive = executive or Executive()
47 self._filesystem = filesystem or FileSystem()
48 self.checkout_root = self.find_checkout_root(self.cwd)
51 def _run(self, args, cwd=None, input=None, error_handler=None, return_exit_code=False, return_stderr=True, decode_output=True):
53 return self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/net/
H A Dweb_mock.py33 def __init__(self, urls=None):
34 self.urls = urls or {}
35 self.urls_fetched = []
37 def get_binary(self, url, convert_404_to_None=False):
38 self.urls_fetched.append(url)
39 if url in self.urls:
40 return self.urls[url]
48 def open(self, url):
51 def select_form(self, name):
54 def __setitem__(self, ke
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dlogutils_unittest.py38 def test_get_logger_in_webkitpy(self):
40 self.assertEqual(logger.name, "webkitpy.common.system.logutils_unittest")
42 def test_get_logger_not_in_webkitpy(self):
50 self.assertEqual(logger.name, "test-webkitpy")
53 self.assertEqual(logger.name, "test-webkitpy")
62 def _logging_level(self):
65 def setUp(self):
66 log_stream = TestLogStream(self)
78 logging_level = self._logging_level()
79 self
[all...]
H A Dplatforminfo_unittest.py51 def mac_ver(self):
54 def platform(self):
57 def release(self):
70 def make_info(self, sys_module=None, platform_module=None, executive=None):
73 def test_real_code(self):
76 self.assertNotEquals(info.os_name, '')
77 self.assertNotEquals(info.os_version, '')
78 self.assertNotEquals(info.display_name(), '')
79 self.assertTrue(info.is_mac() or info.is_win() or info.is_linux() or info.is_freebsd())
80 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/
H A Dpatchreader_unittest.py44 def __init__(self):
45 self.passed_to_process_file = []
47 self.delete_only_file_count = 0
50 def process_file(self, file_path, line_numbers):
51 self.passed_to_process_file.append((file_path, line_numbers))
53 def count_delete_only_file(self):
54 self.delete_only_file_count += 1
56 def setUp(self):
57 file_reader = self.MockTextFileReader()
58 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/w3c/
H A Ddeps_updater.py14 def __init__(self, host):
15 self.host = host
16 self.executive = host.executive
17 self.fs = host.filesystem
18 self.finder = WebKitFinder(self.fs)
19 self.verbose = False
20 self.allow_local_blink_commits = False
21 self.keep_w3c_repos_around = False
23 def main(self, arg
[all...]
/external/chromium_org/third_party/closure_compiler/
H A Dcompiler_customization_test.py30 def setUp(self):
31 self._checker = Checker()
33 def _runChecker(self, source_code):
36 return self._checker.check(file_path)
38 def _runCheckerTestExpectError(self, source_code, expected_error):
39 _, output = self._runChecker(source_code)
41 self.assertTrue(expected_error in output,
45 def _runCheckerTestExpectSuccess(self, source_code):
46 return_code, output = self._runChecker(source_code)
48 self
[all...]
/external/chromium_org/third_party/closure_linter/closure_linter/common/
H A Dlintrunner.py26 def __init__(self):
27 if self.__class__ == LintRunner:
30 def Run(self, filenames, error_handler):
/external/chromium_org/tools/json_to_struct/
H A Dstruct_generator_test.py11 def testGenerateIntField(self):
12 self.assertEquals('const int foo_bar',
15 def testGenerateStringField(self):
16 self.assertEquals('const char* const bar_foo',
19 def testGenerateString16Field(self):
20 self.assertEquals('const wchar_t* const foo_bar',
23 def testGenerateEnumField(self):
24 self.assertEquals('const MyEnumType foo_foo',
29 def testGenerateArrayField(self):
30 self
[all...]
/external/chromium_org/tools/memory_inspector/memory_inspector/unittest/mock_adb/
H A Dmock_adb.py20 def __init__(self):
21 self._responses = {} # Maps expected_cmd (str) -> prepared_response (str).
22 self._cfg_file = None
24 def Start(self):
25 (fd_num, self._cfg_file) = tempfile.mkstemp()
27 json.dump(self._responses, f)
29 os.environ['MOCK_ADB_CFG'] = self._cfg_file
31 def Stop(self):
32 assert(self._cfg_file), 'Stop called before Start.'
33 os.unlink(self
[all...]
/external/chromium_org/tools/perf/profile_creators/
H A Dmany_extensions_profile_creator.py12 def __init__(self):
13 super(ManyExtensionsProfileCreator, self).__init__()
15 self._extensions_to_install = [
H A Dtheme_profile_creator.py11 def __init__(self):
12 super(ThemeProfileCreator, self).__init__()
15 self._theme_to_install = "opjonmehjfmkejjifhhknofdnacklmjk"
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/
H A Dinspector_console.py7 def __init__(self, inspector_backend):
8 self._inspector_backend = inspector_backend
9 self._inspector_backend.RegisterDomain(
11 self._OnNotification,
12 self._OnClose)
13 self._message_output_stream = None
14 self._last_message = None
15 self._console_enabled = False
17 def _OnNotification(self, msg):
21 self
[all...]
H A Dinspector_websocket.py18 def __init__(self, elapsed_time):
19 super(DispatchNotificationsUntilDoneTimeoutException, self).__init__()
20 self.elapsed_time = elapsed_time
25 def __init__(self, notification_handler=None, error_handler=None):
38 self._socket = None
39 self._cur_socket_timeout = 0
40 self._next_request_id = 0
41 self._notification_handler = notification_handler
42 self._error_handler = error_handler
43 self
[all...]
/external/chromium_org/tools/telemetry/telemetry/page/actions/
H A Dloop_unittest.py16 def setUp(self):
17 tab_test_case.TabTestCase.setUp(self)
18 self.Navigate('video_test.html')
21 def testLoopWithNoSelector(self):
24 action.WillRunAction(self._tab)
25 action.RunAction(self._tab)
27 self.assertTrue(self._tab.EvaluateJavaScript(VIDEO_1_LOOP_CHECK))
28 self.assertFalse(self
[all...]
/external/chromium_org/tools/telemetry/telemetry/timeline/
H A Dcounter.py12 def __init__(self, counter, sample_index):
13 self._counter = counter
14 self._sample_index = sample_index
17 def name(self):
21 def start(self):
22 return self._counter.timestamps[self._sample_index]
25 def start(self, start):
26 self._counter.timestamps[self
[all...]
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/
H A Dserialcli.py32 def open(self):
35 if self._port is None:
37 if self._isOpen:
40 self._port_handle = System.IO.Ports.SerialPort(self.portstr)
42 self._port_handle = None
43 raise SerialException("could not open port %s: %s" % (self.portstr, msg))
45 self._reconfigurePort()
46 self._port_handle.Open()
47 self
[all...]
/external/gtest/test/
H A Dgtest_catch_exceptions_test.py89 def TestSehExceptions(self, test_output):
90 self.assert_('SEH exception with code 0x2a thrown '
93 self.assert_('SEH exception with code 0x2a thrown '
96 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()'
98 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()'
100 self.assert_('SEH exception with code 0x2a thrown in SetUp()'
102 self.assert_('SEH exception with code 0x2a thrown in TearDown()'
104 self.assert_('SEH exception with code 0x2a thrown in the test body'
107 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self):
108 self
[all...]
/external/lldb/test/functionalities/watchpoint/hello_watchlocation/
H A DTestWatchLocation.py18 def test_hello_watchlocation_with_dsym(self):
20 self.buildDsym(dictionary=self.d)
21 self.setTearDownCleanup(dictionary=self.d)
22 self.hello_watchlocation()
26 def test_hello_watchlocation_with_dwarf(self):
28 self.buildDwarf(dictionary=self.d)
29 self
[all...]

Completed in 2573 milliseconds

<<11121314151617181920>>