Searched refs:self (Results 1 - 25 of 2825) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dplatforminfo_mock.py31 def __init__(self, os_name='mac', os_version='snowleopard'):
32 self.os_name = os_name
33 self.os_version = os_version
35 def is_mac(self):
36 return self.os_name == 'mac'
38 def is_linux(self):
39 return self.os_name == 'linux'
41 def is_win(self):
42 return self.os_name == 'win'
44 def is_cygwin(self)
[all...]
H A Denvironment.py31 def __init__(self, env=None):
32 self.env = env or {}
34 def to_dictionary(self):
35 return self.env
37 def disable_gcc_smartquotes(self):
41 self.env['LC_ALL'] = 'C'
/external/chromium_org/tools/grit/grit/node/
H A Dvariant.py19 def MandatoryAttributes(self):
22 def DefaultAttributes(self):
28 def _ContentType(self):
29 if self.attrs.has_key('file'):
30 return self._CONTENT_TYPE_NONE
32 return self._CONTENT_TYPE_CDATA
34 def GetEncodingToUse(self):
35 if self.attrs['encoding'] == '':
36 return self.parent.attrs['encoding']
38 return self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/
H A Dlru_cache_unittest.py34 def setUp(self):
35 self.lru = lru_cache.LRUCache(3)
36 self.lru['key_1'] = 'item_1'
37 self.lru['key_2'] = 'item_2'
38 self.lru['key_3'] = 'item_3'
40 self.lru2 = lru_cache.LRUCache(1)
41 self.lru2['key_1'] = 'item_1'
43 def test_items(self):
44 self.assertEqual(set(self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/config/
H A Dports_mock.py31 def name(self):
34 def check_webkit_style_command(self):
37 def run_python_unittests_command(self):
40 def run_perl_unittests_command(self):
43 def run_webkit_unit_tests_command(self):
46 def run_webkit_tests_command(self):
49 def run_bindings_tests_command(self):
/external/chromium_org/chrome/test/install_test/
H A Dsample_updater.py17 def testCanOpenGoogle(self):
23 self.Install(self.GetUpdateBuilds()[0])
24 self.StartChrome()
25 self._driver.get('http://www.google.com/')
26 self.Install(self.GetUpdateBuilds()[1])
27 self.StartChrome()
28 self._driver.get('http://www.google.org/')
30 def testCanOpenGoogleOrg(self)
[all...]
/external/chromium_org/chrome/test/functional/chromoting/
H A Dme2me_connect.py15 def setUp(self):
18 if self.IsWinVista() or self.IsWinXP():
21 pyauto.PyUITest.setUp(self)
23 self.InstallHostDaemon()
24 webapp = self.InstallExtension(self.GetWebappPath())
25 self.host.LaunchApp(webapp)
26 self.host.Authenticate()
27 self
[all...]
H A Dauth.py15 def setUp(self):
17 pyauto.PyUITest.setUp(self)
19 webapp = self.InstallExtension(self.GetWebappPath())
20 self.host.LaunchApp(webapp)
21 self.account = self.GetPrivateInfo()['test_chromoting_account']
23 def testDenyAllowAccess(self):
25 self.host.ContinueAuth()
26 self
[all...]
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dfuture.py12 def __init__(self, value=_no_value, delegate=None):
13 self._value = value
14 self._delegate = delegate
15 self._exc_info = None
16 if (self._value is _no_value and self._delegate is None):
19 def Get(self):
22 if self._value is not _no_value:
23 return self._value
24 if self
[all...]
H A Dcache_chain_object_store_test.py11 def setUp(self):
12 self._first = TestObjectStore('first', init={
15 self._second = TestObjectStore('second', init={
19 self._third = TestObjectStore('third', init={
24 self._store = CacheChainObjectStore(
25 (self._first, self._second, self._third))
27 def testGetFromFirstLayer(self):
28 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/net/
H A Dregressionwindow.py32 def __init__(self, build_before_failure, failing_build, failing_tests=None):
33 self._build_before_failure = build_before_failure
34 self._failing_build = failing_build
35 self._failing_tests = failing_tests
36 self._revisions = None
38 def build_before_failure(self):
39 return self._build_before_failure
41 def failing_build(self):
42 return self._failing_build
44 def failing_tests(self)
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dtab_list.py5 def __init__(self, tab_list_backend):
6 self._tab_list_backend = tab_list_backend
8 def New(self, timeout=None):
9 return self._tab_list_backend.New(timeout)
11 def __iter__(self):
12 return self._tab_list_backend.__iter__()
14 def __len__(self):
15 return self._tab_list_backend.__len__()
17 def __getitem__(self, index):
18 return self
[all...]
/external/chromium_org/third_party/tlslite/tlslite/integration/
H A DTLSAsyncDispatcherMixIn.py57 def __init__ (self, server, conn, addr):
58 http_server.http_channel.__init__(self, server, conn, addr)
59 TLSAsyncDispatcherMixIn.__init__(self, conn)
60 self.tlsConnection.ignoreAbruptClose = True
61 self.setServerHandshakeOp(certChain=certChain,
76 def __init__(self, sock=None):
77 AsyncStateMachine.__init__(self)
80 self.tlsConnection = TLSConnection(sock)
86 for cl in self.__class__.__bases__:
88 self
[all...]
H A DAsyncStateMachine.py21 def __init__(self):
22 self._clear()
24 def _clear(self):
28 self.handshaker = None
29 self.closer = None
30 self.reader = None
31 self.writer = None
38 self.result = None
40 def _checkAssert(self, maxActive=1):
42 #active, and that self
[all...]
/external/chromium_org/chrome/test/functional/ispy/ispy_core/tools/
H A Drendering_test_manager_unittest.py17 def setUp(self):
19 self.bucket = mock_cloud_bucket.MockCloudBucket()
20 self.manager = rendering_test_manager.RenderingTestManager(self.bucket)
21 self.white = Image.new('RGB', (25, 25), (255, 255, 255))
22 self.red = Image.new('RGB', (25, 25), (255, 0, 0))
23 self.black = Image.new('RGB', (25, 25), (0, 0, 0))
25 def testUploadImage(self):
26 self.bucket.Reset()
28 self
[all...]
/external/chromium_org/third_party/tlslite/tlslite/
H A DSessionCache.py22 def __init__(self, maxEntries=10000, maxAge=14400):
34 self.lock = thread.allocate_lock()
37 self.entriesDict = {}
40 self.entriesList = [(None,None)] * maxEntries
42 self.firstIndex = 0
43 self.lastIndex = 0
44 self.maxAge = maxAge
46 def __getitem__(self, sessionID):
47 self.lock.acquire()
49 self
[all...]
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
H A Derrorhandler.py31 def __init__(self):
32 if self.__class__ == ErrorHandler:
35 def HandleFile(self, filename, first_token):
43 def HandleError(self, error):
50 def FinishFile(self):
56 def GetErrors(self):
/external/chromium_org/third_party/closure_linter/closure_linter/common/
H A Derrorhandler.py31 def __init__(self):
32 if self.__class__ == ErrorHandler:
35 def HandleFile(self, filename, first_token):
43 def HandleError(self, error):
50 def FinishFile(self):
56 def GetErrors(self):
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/
H A Dmock_writer.py14 def __init__(self):
17 def WritePolicy(self, policy):
20 def BeginTemplate(self):
23 def GetTemplateText(self):
26 def IsPolicySupported(self, policy):
29 def Test(self):
/external/chromium_org/tools/telemetry/telemetry/core/chrome/
H A Dtrace_result.py6 def __init__(self, impl):
7 self._impl = impl
9 def Serialize(self, f):
11 return self._impl.Serialize(f)
13 def AsTimelineModel(self):
16 return self._impl.AsTimelineModel()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/
H A Dlayout_tests_mover_unittest.py41 def __init__(self, **kwargs):
44 ChromiumPort.__init__(self, host, host.port_factory.all_port_names()[0], **kwargs)
46 host.filesystem.maybe_make_directory(self._absolute_path('platform'))
47 host.filesystem.maybe_make_directory(self._absolute_path('existing_directory'))
48 host.filesystem.write_text_file(self._absolute_path('existing_file.txt'), '')
49 host.filesystem.write_text_file(self._absolute_path('TestExpectations'), """
54 host.filesystem.write_text_file(self._absolute_path('existing_directory_with_contents', 'test.html'), '')
55 host.filesystem.write_text_file(self._absolute_path('origin', 'path', 'test.html'), """
63 host.filesystem.write_text_file(self._absolute_path('origin', 'path', 'test.css'), """
70 host.filesystem.write_text_file(self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/
H A Dcpp_unittest.py55 def __init__(self, assert_fn, filter=None, lines_to_check=None):
58 self._assert_fn = assert_fn
59 self._errors = []
60 self._lines_to_check = lines_to_check
63 self._filter = filter
65 def __call__(self, line_number, category, confidence, message):
66 self._assert_fn(category in self._all_style_categories,
70 if self._lines_to_check and not line_number in self
[all...]
/external/chromium_org/chrome/test/functional/
H A Dchromeos_wifi_compliance.py17 def _BasicConnectRouterCompliance(self, router_name):
23 self.InitWifiPowerStrip()
24 router = self.GetRouterConfig(router_name)
25 self.RouterPower(router_name, True)
29 wifi_visible = self.WaitUntilWifiNetworkAvailable(router['ssid'],
35 self.fail('We expected wifi network "%s" to be %s, but it was not.' %
41 error = self.ConnectToWifiRouter(router_name)
42 self.assertFalse(error, 'Failed to connect to wifi network %s. '
46 ssid = self.GetConnectedWifi()
47 self
[all...]
H A Dchromeos_retail_mode.py18 def ShouldOOBESkipToLogin(self):
22 def _CheckOnRetailModeLoginScreen(self):
24 return self.ExecuteJavascriptInOOBEWebUI(
29 def Login(self):
31 self.ExecuteJavascriptInOOBEWebUI(
39 def testLogin(self):
41 self.assertTrue(self._CheckOnRetailModeLoginScreen(),
44 self.Login()
45 self
[all...]
/external/srec/shared/src/
H A DHashMap.c25 ESR_ReturnCode HashMapPut(HashMap* self, const LCHAR* key, void* value) argument
27 if (self == NULL)
29 return self->put(self, key, value);
32 ESR_ReturnCode HashMapRemove(HashMap* self, const LCHAR* key) argument
34 if (self == NULL)
36 return self->remove(self, key);
39 ESR_ReturnCode HashMapRemoveAndFree(HashMap* self, const LCHAR* key) argument
41 if (self
46 HashMapRemoveAtIndex(HashMap* self, const size_t index) argument
53 HashMapRemoveAll(HashMap* self) argument
60 HashMapRemoveAndFreeAll(HashMap* self) argument
67 HashMapContainsKey(HashMap* self, const LCHAR* key, ESR_BOOL* exists) argument
74 HashMapGetSize(HashMap* self, size_t* size) argument
81 HashMapGet(HashMap* self, const LCHAR* key, void** value) argument
88 HashMapGetKeyAtIndex(HashMap* self, const size_t index, LCHAR** key) argument
95 HashMapGetValueAtIndex(HashMap* self, const size_t index, void** value) argument
102 HashMapDestroy(HashMap* self) argument
[all...]

Completed in 628 milliseconds

1234567891011>>