chromium/src/chrome/test/pyautolib.git
7 months agoAdd breakpad support for me2me and it2me native messaging host on Mac. master
weitaosu@chromium.org [Fri, 28 Mar 2014 05:22:00 +0000 (05:22 +0000)]
Add breakpad support for me2me and it2me native messaging host on Mac.

Changes in this CL include:
1. Initialize breakpad in it2me native messaging host
2. Create bundles for it2me and me2me native messaging hosts and move them out of the me2me host bundle (and update the manifests accordingly).
3. Dump symbols of the it2me and me2me native messaging hosts
4. Sign the me2me and it2me native messaging hosts
4. Rename the me2me host bundle and the prefPane bundle to get rid of the internal chromium/chromoting names and to conform to Mac convention
5. Refactor GYP, build-installer-archive.py, and do_signing.sh, etc to use name constants from branding_chrome and branding_chromium instead of hard coded names. This ensures that all the name constants are defined in a central location and reduces duplicate name definitions.

Here are the names of the host bundles:

me2me host:
old name: org.chromium.chromoting.me2me_host
new name: ChromeRemoteDesktop.Host

Pref pane:
old name: org.chromium.chromoting.prefPane
new name: ChromeRemoteDesktop.prefPane

it2me nm host:
name: NativeMessagingHost
Full Path: /Library/Google/ChromeRemoteDesktop/NativeMessagingHost.app

me2me nm host:
name: RemoteAssistanceHost
Full path: /Library/Google/ChromeRemoteDesktop/RemoteAssistanceHost.app

BUG=

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259287

Review URL: https://codereview.chromium.org/186763004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@260075 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoRevert 259287 "Add breakpad support for me2me and it2me native m..."
ernstm@chromium.org [Tue, 25 Mar 2014 23:59:41 +0000 (23:59 +0000)]
Revert 259287 "Add breakpad support for me2me and it2me native m..."

Breaks Google Chrome build:
http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%20x64/builds/49089/steps/compile/logs/stdio

> Add breakpad support for me2me and it2me native messaging host on Mac.
>
> Changes in this CL include:
> 1. Initialize breakpad in it2me native messaging host
> 2. Create bundles for it2me and me2me native messaging hosts and move them out of the me2me host bundle (and update the manifests accordingly).
> 3. Dump symbols of the it2me and me2me native messaging hosts
> 4. Sign the me2me and it2me native messaging hosts
> 4. Rename the me2me host bundle and the prefPane bundle to get rid of the internal chromium/chromoting names and to conform to Mac convention
> 5. Refactor GYP, build-installer-archive.py, and do_signing.sh, etc to use name constants from branding_chrome and branding_chromium instead of hard coded names. This ensures that all the name constants are defined in a central location and reduces duplicate name definitions.
>
> Here are the names of the host bundles:
>
> me2me host:
> old name: org.chromium.chromoting.me2me_host
> new name: ChromeRemoteDesktop.Host
>
> Pref pane:
> old name: org.chromium.chromoting.prefPane
> new name: ChromeRemoteDesktop.prefPane
>
> it2me nm host:
> name: NativeMessagingHost
> Full Path: /Library/Google/ChromeRemoteDesktop/NativeMessagingHost.app
>
> me2me nm host:
> name: RemoteAssistanceHost
> Full path: /Library/Google/ChromeRemoteDesktop/RemoteAssistanceHost.app
>
> BUG=
>
> Review URL: https://codereview.chromium.org/186763004

TBR=weitaosu@chromium.org

Review URL: https://codereview.chromium.org/209043004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@259400 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoAdd breakpad support for me2me and it2me native messaging host on Mac.
weitaosu@chromium.org [Tue, 25 Mar 2014 19:29:16 +0000 (19:29 +0000)]
Add breakpad support for me2me and it2me native messaging host on Mac.

Changes in this CL include:
1. Initialize breakpad in it2me native messaging host
2. Create bundles for it2me and me2me native messaging hosts and move them out of the me2me host bundle (and update the manifests accordingly).
3. Dump symbols of the it2me and me2me native messaging hosts
4. Sign the me2me and it2me native messaging hosts
4. Rename the me2me host bundle and the prefPane bundle to get rid of the internal chromium/chromoting names and to conform to Mac convention
5. Refactor GYP, build-installer-archive.py, and do_signing.sh, etc to use name constants from branding_chrome and branding_chromium instead of hard coded names. This ensures that all the name constants are defined in a central location and reduces duplicate name definitions.

Here are the names of the host bundles:

me2me host:
old name: org.chromium.chromoting.me2me_host
new name: ChromeRemoteDesktop.Host

Pref pane:
old name: org.chromium.chromoting.prefPane
new name: ChromeRemoteDesktop.prefPane

it2me nm host:
name: NativeMessagingHost
Full Path: /Library/Google/ChromeRemoteDesktop/NativeMessagingHost.app

me2me nm host:
name: RemoteAssistanceHost
Full path: /Library/Google/ChromeRemoteDesktop/RemoteAssistanceHost.app

BUG=

Review URL: https://codereview.chromium.org/186763004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@259287 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoRun ContentMain in a browser_test's browser process. This removes duplication of...
jam@chromium.org [Tue, 18 Mar 2014 04:25:35 +0000 (04:25 +0000)]
Run ContentMain in a browser_test's browser process. This removes duplication of code in the browser test harness for setting up the browser process, and also ensures that initialization code in ContentMainRunner runs.

Most of the changes are to unit tests which run in browser test executables. These were getting all the setup that these binaries did for browser tests even though they were unit tests. Now they have to explicitly setup objects that they need. This would be done automatically if they were in a unit test binary and therefore using the unit test harness. The goal should be to move these tests to unit test binaries, and make them support launching some tests in separate processes building on the work that Pawel did.

BUG=350550
R=sky@chromium.org

Review URL: https://codereview.chromium.org/190663012

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@257597 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoFix wide/ASCII conversion for CrOS testing.
brettw@chromium.org [Sat, 15 Mar 2014 05:17:38 +0000 (05:17 +0000)]
Fix wide/ASCII conversion for CrOS testing.

I broke this when removing WideToASCII.

TBR=sky

Review URL: https://codereview.chromium.org/197283023

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@257289 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoUpdate pyauto to override IsBrowserTestSuite function
dbasehore@chromium.org [Fri, 14 Mar 2014 22:17:36 +0000 (22:17 +0000)]
Update pyauto to override IsBrowserTestSuite function

We need this to keep pyauto working until all of the tests have moved over to
telemetry.

BUG=348729
TEST=desktopui_PyAutoInstall and power_LoadTest

Review URL: https://codereview.chromium.org/196023014

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@257224 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

7 months agoMove UTF16ToASCII, remove WideToASCII.
brettw@chromium.org [Fri, 14 Mar 2014 21:11:46 +0000 (21:11 +0000)]
Move UTF16ToASCII, remove WideToASCII.

This removes WideToASCII and changes all callers to use UTF16ToASCII instead.

Moves UTF16ToASCII from base/strings/string_util.h to base/strings/utf_string_conversions.h and into the base namespace.

Convert a few related string_util functions to take a StringPiece16 instead of a string16. Remove IsStringASCII(std::wstring) which was unused.

Updates callers' includes and namespace usage accordingly.

TBR=sky

Review URL: https://codereview.chromium.org/176843022

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@257200 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

8 months agocros-asan: Fix crash in chromeos asan bot.
yunlian@chromium.org [Wed, 12 Feb 2014 22:33:28 +0000 (22:33 +0000)]
cros-asan: Fix crash in chromeos asan bot.

When upgrade clang to clang 3.5, we need
__asan_stack_malloc_0 in the asan_stub.

BUG=None

Review URL: https://codereview.chromium.org/151183007

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@250806 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agocros-asan: Fix another crash in chromeos asan bots.
sadrul@chromium.org [Sat, 18 Jan 2014 21:41:37 +0000 (21:41 +0000)]
cros-asan: Fix another crash in chromeos asan bots.

This time, add __asan_unpoison_memory_region in the asan_stub.

BUG=none
TBR=yunlian,sky

Review URL: https://codereview.chromium.org/141273013

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@245794 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agocros-asan: Fix a crash in chromeos asan bots.
sadrul@chromium.org [Sat, 18 Jan 2014 18:32:16 +0000 (18:32 +0000)]
cros-asan: Fix a crash in chromeos asan bots.

The error reported is:
  ERROR logging_AsanCrash logging_AsanCrash timestamp=... localtime=... Unhandled ImportError: /usr/local/autotest/deps/pyauto_dep/test_src/out/Release/_pyautolib.so: undefined symbol: __asan_unpoison_memory_region
  Traceback (most recent call last):
  File /usr/local/autotest/common_lib/test.py, line 480, in _exec
  _cherry_pick_call(self.initialize, *args, **dargs)
  ...

BUG=none
R=yunlian@chromium.org
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/139303019

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@245787 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

10 months agoUpdateing ASAN stub with new API
yunlian@chromium.org [Tue, 10 Dec 2013 05:05:17 +0000 (05:05 +0000)]
Updateing ASAN stub with new API

Clang r192869 adds several ASAN functions.

BUG=chromium:326257
TEST=manual

Review URL: https://codereview.chromium.org/98403006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@239660 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

10 months agoRemove kkania from various OWNERS and watchlists.
kkania@chromium.org [Mon, 9 Dec 2013 23:04:57 +0000 (23:04 +0000)]
Remove kkania from various OWNERS and watchlists.
BUG=none
NOTRY=true

Review URL: https://codereview.chromium.org/100113003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@239588 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoRemove usages of HeapProfiler.finishHeapSnapshot from pyautolib
yurys@chromium.org [Tue, 15 Oct 2013 07:56:47 +0000 (07:56 +0000)]
Remove usages of HeapProfiler.finishHeapSnapshot from pyautolib

HeapProfiler.finishHeapSnapshot is being removed from the protocol (see https://codereview.chromium.org/27000005/). This change makes RemoteInspectorClient use the same mechanism as in DevTools front-end.

BUG=306475
R=dennisjeffrey@chromium.org, marja@chromium.org
TBR=kkania@chromium.org

Review URL: https://codereview.chromium.org/27018002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@228650 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoRemove references to sconsbuild.
thakis@chromium.org [Sat, 12 Oct 2013 02:38:29 +0000 (02:38 +0000)]
Remove references to sconsbuild.

scons hasn't been used in a long time.

BUG=305702
NOTRY=true

Review URL: https://codereview.chromium.org/26718002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@228308 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoMove some cros settings code to chromeos/settings
stevenjb@chromium.org [Thu, 10 Oct 2013 21:59:26 +0000 (21:59 +0000)]
Move some cros settings code to chromeos/settings

BUG=270135
For numerous #include changes:
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/26732002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@228017 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoUpdateing ASAN stub with new API
yunlian@chromium.org [Fri, 4 Oct 2013 20:40:25 +0000 (20:40 +0000)]
Updateing ASAN stub with new API

Description:Updating ASAN stub with new API

Clang 3.4 added several ASAN functions and
it also changes the memory mapping for amd64.

BUG=chromium:303294
TEST=manual

Review URL: https://codereview.chromium.org/25648006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@227080 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

13 months agofile_manager: Remove pyauto tests for the file manager
satorux@chromium.org [Tue, 17 Sep 2013 05:21:07 +0000 (05:21 +0000)]
file_manager: Remove pyauto tests for the file manager

The pyauto tests for the file manager are no longer maintained.
Besides, the file manager is now tested with browser tests.

BUG=289294
TEST=none

Review URL: https://chromiumcodereview.appspot.com/23834007

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@223545 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

13 months agoRemove nirnimesh and dennisjeffrey from OWNERS files
satorux@chromium.org [Mon, 16 Sep 2013 21:38:59 +0000 (21:38 +0000)]
Remove nirnimesh and dennisjeffrey from OWNERS files

They no longer work on Chrome.

BUG=none
TEST=none
R=craigdh@chromium.org

Review URL: https://codereview.chromium.org/23439005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@223423 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

13 months agoRemove all NetworkLibrary dependencies from AutomationTestingProvider
stevenjb@chromium.org [Tue, 10 Sep 2013 23:00:22 +0000 (23:00 +0000)]
Remove all NetworkLibrary dependencies from AutomationTestingProvider

BUG=259896
TBR=phajdan.jr@chromium.org, achuith@chromium.org for c/b/automation

Review URL: https://chromiumcodereview.appspot.com/23503040

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@222379 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoEliminate unused PYAUTO tests and TestingAutomationProvider methods
stevenjb@chromium.org [Mon, 26 Aug 2013 18:38:19 +0000 (18:38 +0000)]
Eliminate unused PYAUTO tests and TestingAutomationProvider methods

My understanding is that none of these tests are currently being run,
so we should eliminate them so that we can remove the supporting code.

BUG=259896
R=dennisjeffrey@chromium.org, phajdan.jr@chromium.org

Review URL: https://codereview.chromium.org/23359003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@219570 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoRemove all traces of deprecated Get/SetReleaseTrack calls.
sosa@chromium.org [Sat, 3 Aug 2013 00:54:48 +0000 (00:54 +0000)]
Remove all traces of deprecated Get/SetReleaseTrack calls.

In early M30 we deprecated this API and are planning on removing
the calling end in the update engine. This CL removes the browser-side
stubs/callbacks and any trace of them left in the code.

BUG=chromium:221850
TEST=try + build

Review URL: https://chromiumcodereview.appspot.com/21015010

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@215431 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoAdded optional parameter to set the remote debug port in __init__
borui@google.com [Sun, 28 Jul 2013 08:33:33 +0000 (08:33 +0000)]
Added optional parameter to set the remote debug port in __init__

BUG=

Review URL: https://chromiumcodereview.appspot.com/20579002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@214102 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoRemve functional tests for native memory instrumentaion
yurys@chromium.org [Thu, 18 Jul 2013 20:50:17 +0000 (20:50 +0000)]
Remve functional tests for native memory instrumentaion

Native memory instrumentation has been removed. The tests depend on Memory.getProcessMemoryDistribution which was also removed.

BUG=234422

Review URL: https://chromiumcodereview.appspot.com/19759002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@212425 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoRemove support for legacy inspector protocol commands
yurys@chromium.org [Thu, 18 Jul 2013 20:46:56 +0000 (20:46 +0000)]
Remove support for legacy inspector protocol commands

BUG=None

Review URL: https://chromiumcodereview.appspot.com/19739003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@212423 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoUse a direct include of the message_loop header in chrome/test/, chrome/tools/, chrom...
avi@chromium.org [Thu, 18 Jul 2013 02:33:25 +0000 (02:33 +0000)]
Use a direct include of the message_loop header in chrome/test/, chrome/tools/, chrome/utility/.

BUG=260807
TEST=none
TBR=ben@chromium.org

Review URL: https://chromiumcodereview.appspot.com/19569006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@212216 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agochrome: Migrate from googleurl/ includes to url/ ones. Part 3.
tfarina@chromium.org [Thu, 4 Jul 2013 16:11:13 +0000 (16:11 +0000)]
chrome: Migrate from googleurl/ includes to url/ ones. Part 3.

BUG=229660
TBR=thestig@chromium.org
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/18523004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@210197 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoRemove ip_address from TestingAutomationProvider::GetNetworkInfo.
pneubeck@chromium.org [Thu, 4 Jul 2013 10:09:25 +0000 (10:09 +0000)]
Remove ip_address from TestingAutomationProvider::GetNetworkInfo.

ip_address seems to be unused. This removes yet another dependency on NetworkLibrary.

BUG=NONE

Review URL: https://chromiumcodereview.appspot.com/18634002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@210166 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agocros: Use ExecuteJavascript for test automation login.
xiyuan@chromium.org [Wed, 3 Jul 2013 04:08:16 +0000 (04:08 +0000)]
cros: Use ExecuteJavascript for test automation login.

- Use ExecuteJavascriptInWebFrame to submit login form on 'loginWebUiLoaded'
  signal for test automation instead of content script injection to get rid
  of test flakes.
- Remove test manifest, test_email and test_password params from auth extension;
- Remove no longer used enterprise enrollment test code;
- Dump chromeos/login VLOG for test;

BUG=235983

Review URL: https://chromiumcodereview.appspot.com/18052027

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@209879 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoRemove the import PYAUTO tests.
gab@chromium.org [Tue, 2 Jul 2013 20:20:10 +0000 (20:20 +0000)]
Remove the import PYAUTO tests.

They have now all been replaced by importer browser_tests (http://crrev.com/196518) and ProfileWriter unit tests (http://crrev.com/204421).

This is a prerequisite for https://codereview.chromium.org/18052010/

BUG=243423, 254672, 114244, 89768, 63001
R=jam@chromium.org

Review URL: https://codereview.chromium.org/18556002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@209764 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoUse a direct include of time headers in chrome/test/, chrome/tools/.
avi@chromium.org [Fri, 28 Jun 2013 15:17:04 +0000 (15:17 +0000)]
Use a direct include of time headers in chrome/test/, chrome/tools/.

BUG=254986
TEST=none
TBR=ben@chromium.org

Review URL: https://codereview.chromium.org/18148002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@209147 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoRemove WebKit prefix from uses of MutationObserver
adamk@chromium.org [Thu, 27 Jun 2013 00:31:07 +0000 (00:31 +0000)]
Remove WebKit prefix from uses of MutationObserver

MutationObserver is available unprefixed in Blink, and the prefixed name
may disappear in the future. Functionality is identical.

R=arv@chromium.org, jyasskin@chromium.org, phajdan.jr@chromium.org, rafaelw@chromium.org, sergeyu@chromium.org, yoshiki@chromium.org

Review URL: https://codereview.chromium.org/17568017

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@208833 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoRemove unused ca_cert_nss_nickname from automation.
pneubeck@chromium.org [Fri, 14 Jun 2013 07:29:06 +0000 (07:29 +0000)]
Remove unused ca_cert_nss_nickname from automation.

Removing this dependency eases the upcoming migration from certificate references by GUIDs to fingerprints.

BUG=208986, 248864

Review URL: https://chromiumcodereview.appspot.com/16962004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@206355 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoUse a direct include of strings headers in chrome/test/.
avi@chromium.org [Tue, 11 Jun 2013 05:07:47 +0000 (05:07 +0000)]
Use a direct include of strings headers in chrome/test/.

BUG=247723
TEST=none
TBR=ben@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16753002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@205422 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoUse a direct include of utf_string_conversions.h in chrome/renderer/, chrome/service...
avi@chromium.org [Fri, 7 Jun 2013 21:23:26 +0000 (21:23 +0000)]
Use a direct include of utf_string_conversions.h in chrome/renderer/, chrome/service/, chrome/test/, chrome/third_party/, chrome/tools/.

BUG=none
TEST=none
TBR=ben@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15709008

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@204931 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoUpdating webdriver py bindings from 16922->18337
frankf@chromium.org [Fri, 7 Jun 2013 00:50:35 +0000 (00:50 +0000)]
Updating webdriver py bindings from 16922->18337

BUG=

Review URL: https://chromiumcodereview.appspot.com/16544006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@204681 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoUse base::MessageLoop in more files.
xhwang@chromium.org [Thu, 30 May 2013 23:11:04 +0000 (23:11 +0000)]
Use base::MessageLoop in more files.

These are either missed in the first pass, or added after the first pass.

TBR=thestig@chromium.org
BUG=236029

Review URL: https://codereview.chromium.org/16092013

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@203259 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoMigrate auto_tests about proxy configuration to browser_tests.
pneubeck@chromium.org [Wed, 29 May 2013 11:49:10 +0000 (11:49 +0000)]
Migrate auto_tests about proxy configuration to browser_tests.

At the same time this
- removes a lot of unnecessary code testing_automation_provider* and pyauto,
- removes the dependency of testing_automation_provider* on ProxyConfigServiceImpl.

BUG=234982
TEST=New browser_tests. Ran pyauto test testCachedCredentialsAddUser locally.

Review URL: https://chromiumcodereview.appspot.com/16045005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@202849 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoDelete Automation[Tab/Renderer]Helper and fix users.
kkania@chromium.org [Fri, 24 May 2013 22:34:02 +0000 (22:34 +0000)]
Delete Automation[Tab/Renderer]Helper and fix users.

For Chrome Endure, use the memory benchmarking V8 extension instead.
For the old ChromeDriver, just mark the messages as deprecated on the client side. I'll remove all the old ChromeDriver code later. I want to keep it here since we release ChromeDriver from HEAD, and we might need to do critical fixes for Chrome 28 and below still.
BUG=240580

Review URL: https://chromiumcodereview.appspot.com/14977013

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@202205 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agochrome: Use base::MessageLoop. (Part 1)
xhwang@chromium.org [Fri, 10 May 2013 21:33:26 +0000 (21:33 +0000)]
chrome: Use base::MessageLoop. (Part 1)

chrome/browser/* will be updated in another CL

BUG=236029
R=sky@chromium.org

Review URL: https://codereview.chromium.org/14314025

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@199547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoFix build after https://codereview.chromium.org/14691006
phajdan.jr@chromium.org [Tue, 7 May 2013 20:55:37 +0000 (20:55 +0000)]
Fix build after https://codereview.chromium.org/14691006

TBR=rch

BUG=96594

Review URL: https://codereview.chromium.org/15039011

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@198794 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoGTTF: rename net::TestServer -> net::SpawnedTestServer
phajdan.jr@chromium.org [Fri, 3 May 2013 18:57:22 +0000 (18:57 +0000)]
GTTF: rename net::TestServer -> net::SpawnedTestServer

This is a part of replacing most usages of the Python test server
with an in-process C++ test server that should be easier to debug.

BUG=96594
R=rch@chromium.org

Review URL: https://codereview.chromium.org/14702004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@198151 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoRemove unused |first_run| parameter in ImporterHost::CheckForFirefoxLock() which...
gab@chromium.org [Wed, 24 Apr 2013 19:54:37 +0000 (19:54 +0000)]
Remove unused |first_run| parameter in ImporterHost::CheckForFirefoxLock() which results in a cascade of unused parameter removal.

This is a precursor CL to https://codereview.chromium.org/12670013/

TBR=ben@chromium.org
BUG=219419

Review URL: https://chromiumcodereview.appspot.com/14316007

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@196209 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoCategory group support/Renamings.
rubentopo@gmail.com [Fri, 19 Apr 2013 08:49:03 +0000 (08:49 +0000)]
Category group support/Renamings.

Related review:
https://codereview.chromium.org/11823016/

BUG=168284
TEST=TraceEventTestFixture.Categories, TraceEventTestFixture.CategoryFilter
R=nduca

Review URL: https://chromiumcodereview.appspot.com/12150004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@195109 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoFix minor bug in remote_inspector_client.py that broke it.
dennisjeffrey@google.com [Tue, 16 Apr 2013 23:24:53 +0000 (23:24 +0000)]
Fix minor bug in remote_inspector_client.py that broke it.

In https://codereview.chromium.org/14058002, the function named
_IsWebkitVersionNotOlderThan was changed to
_IsContentVersionNotOlderThan.  There was one more reference to the
old function name in the file that needed to be updated.  That is
done here.  Without this fix, the Chrome Endure tests are broken.

BUG=None
TEST=Verified that a basic run of a Chrome Endure test failed before
this change, but passed after this change.

Review URL: https://codereview.chromium.org/14272005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@194482 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoKeep remote_inspector_client in sync with the latest changes in Blink.
loislo@chromium.org [Thu, 11 Apr 2013 12:09:51 +0000 (12:09 +0000)]
Keep remote_inspector_client in sync with the latest changes in Blink.

We have extracted HeapProfiler domain from Profiler domain.
So the client has to use new agent with fresh version of the browser.

TEST=endurance
BUG=none
R=yurys@chromium.org, dennisjeffrey@chromium.org

Review URL: https://codereview.chromium.org/14058002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@193626 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months agonet: extract net/cert out of net/base
phajdan.jr@chromium.org [Fri, 29 Mar 2013 21:48:11 +0000 (21:48 +0000)]
net: extract net/cert out of net/base

This introduces the following dependency of net/base on things outside:

net/base/openssl_client_key_store.cc:#include "net/cert/x509_certificate.h"

BUG=70818

Review URL: https://codereview.chromium.org/13006020

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@191450 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months ago[Cleanup] Remove StringPrintf from global namespace
groby@chromium.org [Mon, 18 Mar 2013 22:33:04 +0000 (22:33 +0000)]
[Cleanup] Remove StringPrintf from global namespace

use of StringPrintf now requires prefixing with base:: or a per-scope using directive

TBR'd:
abodenha: chrome/service
brettw: content, third_party, webkit
darin: base, chrome/browser, chrome/renderer
dgarret: courgette
enne: cc
fischmann: media
gbillock: sql
joi: google_apis,components
rsleevi: net, crypto
sky: chrome/test
thestig: printing, chrome/common,
tsepez: ipc
wez: remoting
yfriedman: testing/android

NOTRY=true
R=brettw@chromium.org
TBR=joi@chromium.org, rsleevi@chromium.org, enne@chromium.org, thestig@chromium.org, darin@chromium.org, abodenha@chromium.org, sky@chromium.org, dgarret@chromium.org, tsepez@chromium.org, fishman@chromium.org, wez@chromium.org, gbillock@chromium.org, yfriedman@chromium.org
BUG=

Review URL: https://codereview.chromium.org/12767006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@188857 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months agoUpdate asan_stub in accordance with asan API.
glotov@chromium.org [Sun, 10 Mar 2013 14:53:17 +0000 (14:53 +0000)]
Update asan_stub in accordance with asan API.

BUG=none
TEST=none
TBR=dennisjeffrey@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12717006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@187207 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months agoUpdate asan_stub in accordance with asan API.
glotov@chromium.org [Wed, 6 Mar 2013 21:44:08 +0000 (21:44 +0000)]
Update asan_stub in accordance with asan API.

BUG=none
TEST=none
TBR=dennisjeffrey@chromium.org

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186461

Review URL: https://codereview.chromium.org/12475006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@186506 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months agoUpdate asan_stub in accordance with asan API.
glotov@chromium.org [Wed, 6 Mar 2013 18:02:29 +0000 (18:02 +0000)]
Update asan_stub in accordance with asan API.

BUG=none
TEST=none
TBR=dennisjeffrey@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12475006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@186461 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months agoUpdate asan_stub in accordance with asan API.
glotov@chromium.org [Tue, 5 Mar 2013 12:20:51 +0000 (12:20 +0000)]
Update asan_stub in accordance with asan API.

BUG=none
TEST=none
TBR=dennisjeffrey@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12413006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@186159 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoRevert 184352
brettw@chromium.org [Sun, 24 Feb 2013 21:14:53 +0000 (21:14 +0000)]
Revert 184352
> Add utf_string_conversions to base namespace.
>
> This adds "using"s for all functions so those can be fixed in a separate pass.
>
> This converts the "Wide" versions of the functions in the Chrome directory as a first pass on the changeover.
>
> BUG=
>
> Review URL: https://codereview.chromium.org/12314090

TBR=brettw@chromium.org
Review URL: https://codereview.chromium.org/12315071

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@184355 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoAdd utf_string_conversions to base namespace.
brettw@chromium.org [Sun, 24 Feb 2013 20:27:04 +0000 (20:27 +0000)]
Add utf_string_conversions to base namespace.

This adds "using"s for all functions so those can be fixed in a separate pass.

This converts the "Wide" versions of the functions in the Chrome directory as a first pass on the changeover.

BUG=

Review URL: https://codereview.chromium.org/12314090

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@184352 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoDisable "using base::FilePath" on Linux since it now compiles.
brettw@chromium.org [Sun, 17 Feb 2013 19:36:03 +0000 (19:36 +0000)]
Disable "using base::FilePath" on Linux since it now compiles.

This keeps the using for other platforms temporarily. This patch is to "stop
the bleeding" since new conflicts are added every day. The other platforms will
be fixed in followup patches.

This also adds an exception for the MTPD code which has a circular dependency
on FilePath.

Review URL: https://codereview.chromium.org/12282019

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@183043 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoDelete Instant pyauto tests.
sreeram@chromium.org [Wed, 13 Feb 2013 22:10:38 +0000 (22:10 +0000)]
Delete Instant pyauto tests.

Pyauto is deprecated. We'll add some of these tests back as browser
tests. Some don't make sense because they are very specific to Google
and not Chrome Instant generally (such as the case insensitivity test).

We're not losing much test coverage here because many of these tests
already exist as browser tests (e.g.: testing that Instant doesn't
preview URLs, testing a non-Instant supporting engine).

BUG=165843,168809
R=phajdan.jr@chromium.org
TEST=none

Review URL: https://chromiumcodereview.appspot.com/12223125

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@182319 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoRename FilePath to base::FilePath and use new location of string_number_conversions...
brettw@chromium.org [Fri, 8 Feb 2013 22:38:41 +0000 (22:38 +0000)]
Rename FilePath to base::FilePath and use new location of string_number_conversions in some chrome subdirectories.

Review URL: https://codereview.chromium.org/12218065

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@181564 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

20 months agoSwitch remote_inspector_client.py from Memory.getDOMNodeCount to more simple Memory...
yurys@chromium.org [Wed, 6 Feb 2013 08:41:41 +0000 (08:41 +0000)]
Switch remote_inspector_client.py from Memory.getDOMNodeCount to more simple Memory.getDOMCounters command. Memory.getDOMNodeCount is going to be removed from the protocol soon.

Related WebKit bugs:
https://bugs.webkit.org/show_bug.cgi?id=108821
https://bugs.webkit.org/show_bug.cgi?id=108822

BUG=

Review URL: https://codereview.chromium.org/12197010

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@180937 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoRemove old cloud policy code.
mnissler@chromium.org [Wed, 23 Jan 2013 12:15:27 +0000 (12:15 +0000)]
Remove old cloud policy code.

The old framework has been abandoned in favor of a more flexible rewrite
which is already being used for the desktop cloud policy implementation.
Chrome OS has switched over with M25, so it's time to remove the old
code.

BUG=chromium:108928
TEST=Still compiles and passes tests.

Review URL: https://chromiumcodereview.appspot.com/11946017

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@178283 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months ago[sync] Divorce python sync test server chromiumsync.py from testserver.py
rsimha@chromium.org [Sun, 20 Jan 2013 01:10:24 +0000 (01:10 +0000)]
[sync] Divorce python sync test server chromiumsync.py from testserver.py

Various chrome test suites use the infrastructure in net::LocalTestServer and net/tools/testserver.py to create local test server instances against which to run automated tests. Sync tests use reference implementations of sync and xmpp servers, which build on the testserver infrastructure in net/. In the past, the sync testserver was small enough that it made sense for it to be a part of the testserver in net/. This, however, resulted in an unwanted dependency from net/ onto sync/, due to the sync proto modules needed to run a python sync server. Now that the sync testserver has grown considerably in scope, it is time to separate it out from net/ while reusing base testserver code, and eliminate the dependency from net/ onto sync/. This work also provides us with the opportunity to remove a whole bunch of dead pyauto sync test code in chrome/test/functional.

This patch does the following:

- Moves the native class LocalSyncTestServer from net/test/ to sync/test/.
- Moves chromiumsync{_test}.py and xmppserver{_test}.py from net/tools/testserver/ to sync/tools/testserver/.
- Removes all sync server specific code from net/.
- Adds a new sync_testserver.py runner script for the python sync test.
- Moves some base classes from testserver.py to testserver_base.py so they can be reused by sync_testserver.py.
- Audits all the python imports in testserver.py, testserver_base.py and sync_testserver.py to make sure there are no unnecessary / missing imports.
- Adds a new run_sync_testserver runner executable to launch a sync testserver.
- Removes a couple of static methods from LocalTestServer, that were being used by run_testserver, and refactors run_sync_testserver to use their non-static versions.
- Adds the ability to run both chromiumsync_test.py and xmppserver_test.py from run_sync_testserver.
- Fixes chromiumsync.py to undo / rectify some older changes that broke tests in chromiumsync_test.py.
- Adds a new test target called test_support_sync_testserver to sync.gyp.
- Removes the hacky dependency on sync_proto from net.gyp:net_test_support.
- Updates various gyp files across chrome to use the new sync testserver target.
- Audits dependencies of net_test_support, run_testserver, and the newly added targets.
- Fixes the android chrome testserver spawner script to account for the above changes.
- Removes all mentions of TYPE_SYNC from the pyauto TestServer shim.
- Deletes all (deprecated) pyauto sync tests. (They had all become broken over time, gotten disabled, and were all redundant due to their equivalent sync integration tests.)
- Removes all sync related pyauto hooks from TestingAutomationProvider, since they are no longer going to be used.
- Takes care of a TODO in safe_browser_testserver.py to remove an unnecessary code block.

Note: A majority of the bugs listed below are for individual pyauto sync tests. Deleting the sync pyauto test script fixes all these bugs in one fell swoop.

TBR=mattm@chromium.org
BUG=117559, 119403, 159731, 15016, 80329, 49378, 87642, 86949, 88679, 104227, 88593, 124913
TEST=run_testserver, run_sync_testserver, sync_integration_tests, sync_performance_tests. All chrome tests that use a testserver should continue to work.

Review URL: https://codereview.chromium.org/11971025

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@177864 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoAdopt inspector protocol changes.
eustas@chromium.org [Fri, 18 Jan 2013 15:17:26 +0000 (15:17 +0000)]
Adopt inspector protocol changes.
Add backward compatibility to pyautolib.
See https://bugs.webkit.org/show_bug.cgi?id=104545

BUG=166160

Review URL: https://chromiumcodereview.appspot.com/11615021

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@177677 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoMerge DownloadItem::SafetyState and DownloadDangerType
rdsmith@chromium.org [Thu, 17 Jan 2013 01:50:52 +0000 (01:50 +0000)]
Merge DownloadItem::SafetyState and DownloadDangerType

R=asanka@chromium.org
R=benjhayden@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11693011

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@177304 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoReplace OncNetworkParser by the new ONC translator.
pneubeck@chromium.org [Sat, 12 Jan 2013 09:13:23 +0000 (09:13 +0000)]
Replace OncNetworkParser by the new ONC translator.

BUG=162040
TBR=jochen@chromium.org (gypi changes), bartfab@chromium.org (minor policy change)

Review URL: https://chromiumcodereview.appspot.com/11578052

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@176520 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoAllow platform apps to be leak checked by providing tab_filter to choose the tab...
scr@chromium.org [Wed, 9 Jan 2013 20:07:23 +0000 (20:07 +0000)]
Allow platform apps to be leak checked by providing tab_filter to choose the tab to inspect.

BUG=169021
R=nirnimesh@chromium.org,marja@chromium.org
CC=dennisjeffrey@chromium.org
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11826027

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@175867 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

21 months agoRemove the DownloadItem::TogglePause() interface.
rdsmith@chromium.org [Mon, 7 Jan 2013 18:03:18 +0000 (18:03 +0000)]
Remove the DownloadItem::TogglePause() interface.

Replace it with explict Pause() and Resume() interfaces.

R=asanka@chromium.org
R=benjhayden@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11711003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@175357 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoUpdating asan_stub to comply with ASAN.
glotov@chromium.org [Sat, 22 Dec 2012 17:25:11 +0000 (17:25 +0000)]
Updating asan_stub to comply with ASAN.

BUG=none
TEST=x86-generic-tot-asan-informational bot must go green
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11661012

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@174532 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months ago[Sync] Fix erroneous sync switch in pyauto.py
akalin@chromium.org [Tue, 18 Dec 2012 21:17:25 +0000 (21:17 +0000)]
[Sync] Fix erroneous sync switch in pyauto.py

I'm not sure if pyauto.py is even being used, but it has misled at least
one person, so I'm fixing it anyway.

BUG=

Review URL: https://codereview.chromium.org/11571039

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@173783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoRemove the protector service.
ivankr@chromium.org [Fri, 14 Dec 2012 17:00:58 +0000 (17:00 +0000)]
Remove the protector service.

BUG=165008
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11493003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@173169 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoIncrease the ChromeOS login automation timeout.
craigdh@chromium.org [Mon, 10 Dec 2012 20:17:09 +0000 (20:17 +0000)]
Increase the ChromeOS login automation timeout.

TEST=Ran desktopui_UrlFetch
BUG=chromium-os:37086
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/11506005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@172125 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months ago[cros,rlz] Remove RLZ checkbox from OOBE UI.
ivankr@chromium.org [Mon, 10 Dec 2012 12:38:06 +0000 (12:38 +0000)]
[cros,rlz] Remove RLZ checkbox from OOBE UI.

BUG=160059
TBR=nirnimesh@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11473019

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@172040 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months ago[rlz,cros] RLZ glue for ChromeOS.
ivankr@chromium.org [Wed, 5 Dec 2012 16:02:24 +0000 (16:02 +0000)]
[rlz,cros] RLZ glue for ChromeOS.

BUG=157348,160059
TBR=nirnimesh,sky

Review URL: https://chromiumcodereview.appspot.com/11412067

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@171233 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoClean up a few -faddress-sanitizer stragglers.
thakis@chromium.org [Tue, 27 Nov 2012 23:41:44 +0000 (23:41 +0000)]
Clean up a few -faddress-sanitizer stragglers.

BUG=159580
TBR=glider

Review URL: https://codereview.chromium.org/11418195

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@169797 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoPyAuto: Check whether Instant is enabled correctly.
sreeram@chromium.org [Mon, 26 Nov 2012 20:55:12 +0000 (20:55 +0000)]
PyAuto: Check whether Instant is enabled correctly.

BUG=162339
R=nirnimesh@chromium.org,phajdan.jr@chromium.org
TEST=See bug.

Review URL: https://chromiumcodereview.appspot.com/11414149

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@169485 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months ago[cros] Remove old pre-WebRTC avatar picker UI.
ivankr@chromium.org [Fri, 16 Nov 2012 14:59:46 +0000 (14:59 +0000)]
[cros] Remove old pre-WebRTC avatar picker UI.

BUG=161232
TEST=No user-visible change.

Review URL: https://chromiumcodereview.appspot.com/11415007

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@168205 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoUpdating ASAN stub with new API
glotov@chromium.org [Wed, 14 Nov 2012 12:06:22 +0000 (12:06 +0000)]
Updating ASAN stub with new API

BUG=chromium-os:34523
TEST=manual

Review URL: https://chromiumcodereview.appspot.com/11275285

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@167656 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoPrevented default apps from being installed in ChromeOS tests
zelidrag@chromium.org [Sat, 10 Nov 2012 01:31:41 +0000 (01:31 +0000)]
Prevented default apps from being installed in ChromeOS tests

BUG=chromium-os:36058
TEST=make sure pyauto BVTs are happy on chromeos bbots

Review URL: https://chromiumcodereview.appspot.com/11368129

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@167029 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months ago[Chromoting PyAuto] Wait until the 'deny access' button is enabled before
simonmorris@chromium.org [Fri, 2 Nov 2012 22:16:23 +0000 (22:16 +0000)]
[Chromoting PyAuto] Wait until the 'deny access' button is enabled before
trying to click it.

This is a parallel CL to codereview.chromium.org/11312026 .

BUG=155292

Review URL: https://codereview.chromium.org/11364059

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@165768 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months ago[Chromoting PyAuto] Wait until a button is enabled before trying to click it.
simonmorris@chromium.org [Thu, 1 Nov 2012 17:07:05 +0000 (17:07 +0000)]
[Chromoting PyAuto] Wait until a button is enabled before trying to click it.

BUG=155292

Review URL: https://codereview.chromium.org/11312026

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@165403 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoHave ExtensionInstallPrompt take a WebContents
sail@chromium.org [Sun, 21 Oct 2012 23:03:05 +0000 (23:03 +0000)]
Have ExtensionInstallPrompt take a WebContents

This CL implements a long standing TODO to change ExtensionInstallPrompt to take WebContents instead of a Browser.

This also fixes bug 156248 which I caused in r161479.

BUG=156248

Review URL: https://codereview.chromium.org/11184029

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@163215 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years ago[Chromoting] Increase a sleep time in chromoting PyAuto tests.
simonmorris@chromium.org [Thu, 18 Oct 2012 17:00:31 +0000 (17:00 +0000)]
[Chromoting] Increase a sleep time in chromoting PyAuto tests.

This is a follow-up to http://codereview.chromium.org/11187043/.
One test is still intermittently failing.

BUG=155292

Review URL: https://codereview.chromium.org/11198064

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@162721 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years ago[Chromoting] Add a short sleep as a temporary fix for failing PyAuto tests.
simonmorris@chromium.org [Wed, 17 Oct 2012 21:43:04 +0000 (21:43 +0000)]
[Chromoting] Add a short sleep as a temporary fix for failing PyAuto tests.

BUG=155292

Review URL: https://codereview.chromium.org/11187043

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@162539 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoA test framework for install/upgrade scenarios.
nkang@chromium.org [Mon, 8 Oct 2012 21:26:38 +0000 (21:26 +0000)]
A test framework for install/upgrade scenarios.

This framework is designed for Chrome 'Updater' tests. Any test that requires Chrome to be updated during testing can be classified as an Updater test. This framework allows users to install and update Chrome from within a test case. It also allows users to run browser tests using the installed version of Chrome, and because it uses the installed version, tests can be performed with user or system level installation. At the moment, it only supports Windows, but going forward, other platforms might also be supported.

BUG=none
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/10384104

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@160709 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoExpand ownership of pyauto tests
nirnimesh@chromium.org [Fri, 5 Oct 2012 21:48:49 +0000 (21:48 +0000)]
Expand ownership of pyauto tests

BUG=None
TEST=None

Review URL: https://codereview.chromium.org/11068031

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@160490 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoAdd a test for checking objects reported by DevTools memory instrumentation not alloc...
yurys@chromium.org [Fri, 5 Oct 2012 09:57:31 +0000 (09:57 +0000)]
Add a test for checking objects reported by DevTools memory instrumentation not allocated by tcmalloc

Added DevToolsInstrumentedObjectsCheck test that checks if all objects counted by DevTools memory instrumentation are actually allocated by tcmalloc. Ideally there shouldn't be other objects but at the moment about 3% of all reported objects are not allocated by tcmalloc.

BUG=None

Review URL: https://chromiumcodereview.appspot.com/11054014

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@160344 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoCheck types in GetServicePath
stanleyw@chromium.org [Wed, 3 Oct 2012 23:35:52 +0000 (23:35 +0000)]
Check types in GetServicePath

The GetNetworkInfo method returns a dictionary with many types.  We
should check the types of the returned values to make sure they're
dictionaries with the correct kvp before continuing.

TEST=network_ONCServer autotest should pass.
BUG=None

Change-Id: I9a4c7756a0bbae15a06e481cb786be809906af04

Review URL: https://chromiumcodereview.appspot.com/11043030

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@160006 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years ago- testSetTheme was already covered (after adding theme name verification).
nirnimesh@chromium.org [Tue, 18 Sep 2012 22:08:47 +0000 (22:08 +0000)]
- testSetTheme was already covered (after adding theme name verification).
- testThemeUndo was already covered
- testThemeOverInstall was already covered
- testThemeInFullScreen -> TestInstallThemeInFullScreen
- testThemeReset -> TestThemeReset
- Runner was not running by default and is missing data files so it doesn't
  look like it has run in a while.

Remove automation hooks: GetThemeInfo, ResetToDefaultTheme

BUG=143637
TEST=browser_tests --gtest_filter=ExtensionInstallUIBrowserTest.*

Review URL: https://chromiumcodereview.appspot.com/10916328

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@157427 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoConverted policy_prefs_ui.py pyauto test to a browser_test.
joaodasilva@chromium.org [Tue, 18 Sep 2012 14:02:15 +0000 (14:02 +0000)]
Converted policy_prefs_ui.py pyauto test to a browser_test.

This is a reland of http://codereview.chromium.org/10905223/ after parameterizing the tests so they don't timeout on chromeos debug bots.

BUG=143637

Review URL: https://chromiumcodereview.appspot.com/10918263

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@157346 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoEnables us to setproxysettings through the chromeos options UI and have it propogate...
beeps@chromium.org [Tue, 18 Sep 2012 04:35:38 +0000 (04:35 +0000)]
Enables us to setproxysettings through the chromeos options UI and have it propogate to the system.

TestingAutomationProvider Get/SetProxySettings:
1. uses profile on shell
2. handles shared proxy settings through internetoptionshandler
3. changed setproxysettings from a browserhandler call to handler call

Pyauto.py:
1. Gets servicepath and network type for sharedproxysettings call
2. uses network_type parameter (used to be windex) to get network information, since setproxysettings
   is now a handler call.

Chromeos_proxy.py:
1. changed to check value in result dictionary instead of presence of key
2. navigate to url and perform setup needed to setproxysettings

TEST=functional/chromeos_proxy.py
BUG=27040

Review URL: https://chromiumcodereview.appspot.com/10829388

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@157295 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years ago[chromeos] Make Login() automation reliably work for relogin scenarios.
nirnimesh@chromium.org [Fri, 14 Sep 2012 00:32:14 +0000 (00:32 +0000)]
[chromeos] Make Login() automation reliably work for relogin scenarios.

NOTIFICATION_LOGIN_WEBUI_VISIBLE is the notification that gets emitted for all
cases of login webui. Use that. This also fixes the Login() automation
for relogin scenarios.

Also, fix the typo in the auth-ext path used in tests (in pyauto.py).

BUG=chromium:139166
TEST=None

Review URL: https://chromiumcodereview.appspot.com/10928168

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@156695 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoRevert 156629 - Converted policy_prefs_ui.py pyauto test to a browser_test.
miket@chromium.org [Thu, 13 Sep 2012 23:05:32 +0000 (23:05 +0000)]
Revert 156629 - Converted policy_prefs_ui.py pyauto test to a browser_test.

BUG=143637

Review URL: https://chromiumcodereview.appspot.com/10905223

TBR=joaodasilva@chromium.org
Review URL: https://codereview.chromium.org/10918235

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@156662 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoConverted policy_prefs_ui.py pyauto test to a browser_test.
joaodasilva@chromium.org [Thu, 13 Sep 2012 21:13:52 +0000 (21:13 +0000)]
Converted policy_prefs_ui.py pyauto test to a browser_test.

BUG=143637

Review URL: https://chromiumcodereview.appspot.com/10905223

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@156629 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoFix the way the test gets dir for key and cert file
yihongg@chromium.org [Thu, 13 Sep 2012 19:12:19 +0000 (19:12 +0000)]
Fix the way the test gets dir for key and cert file

abspath of __file__ is changed after os.chdir() call. Made change to retrieve and save the abspath of __file__ before os.chdir().

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/10908242

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@156595 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoMade two changes to fix the failures on mac.
yihongg@chromium.org [Wed, 12 Sep 2012 20:19:00 +0000 (20:19 +0000)]
Made two changes to fix the failures on mac.
- "svn move" moved mock_pref_pane.py over to the new directory but the file is empty. Add the file content.
- Use abspath to get key files and mock_pref_pane.py.

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/10928153

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@156364 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoCurrently the test assumes that the current working dir is the src dir. This causes...
yihongg@chromium.org [Tue, 11 Sep 2012 19:19:12 +0000 (19:19 +0000)]
Currently the test assumes that the current working dir is the src dir. This causes failure when the test is run on bots. Made changes to move mock_pref_pane to pyautolib and use relative path to solve this.

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/10918176

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@156094 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoChanges to make chromoting_helper more robust.
yihongg@chromium.org [Mon, 10 Sep 2012 19:45:55 +0000 (19:45 +0000)]
Changes to make chromoting_helper more robust.
- Use detach instead of unmount. Unmount in certain situation will leave diskimage_helper process hanging there. Using detach solves that.
- Improve the way pref_pane and mock_pref_pane are cleaned up. Both pref_pane and mock_pref_pane could be either dir or non-dir. Use shutil.rmtree() for dir and use os.remove() for non-dir.

Review URL: https://chromiumcodereview.appspot.com/10919177

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@155802 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoCatch authentication failures from the fake authserver without timing out.
craigdh@chromium.org [Fri, 7 Sep 2012 23:31:38 +0000 (23:31 +0000)]
Catch authentication failures from the fake authserver without timing out.

BUG=None
TEST=login_BadAuthentication, login_LoginSuccess

Change-Id: I5626547da9d0d44ef7b3d791ef619e5d34eaa592

Review URL: https://chromiumcodereview.appspot.com/10919140

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@155532 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoA few changes to enable me2me related test cases on Windows and Mac.
yihongg@chromium.org [Fri, 7 Sep 2012 18:01:38 +0000 (18:01 +0000)]
A few changes to enable me2me related test cases on Windows and Mac.
- Updated to use Packages instead of Iceberg
- Updated no ui uninstall on mac
- Update PYAUTO_TESTS to enable me2me test cases
- Fixed a couple of timing related issues
- Added CleanupHostList to cleanup bogus host entries due to previous failure

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/10824390

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@155423 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoAdd test for DevTools native memory snapshots
yurys@chromium.org [Wed, 5 Sep 2012 21:02:56 +0000 (21:02 +0000)]
Add test for DevTools native memory snapshots

This patch adds a pyauto test that loads some sample pages to into the browser, connects to the browser over remote debugging protocol, takes native memory snapshot and then prints the render process total private memory size and the size of the memory not covered by the DevTools instrumentation. The results will be used to plot graphs that should allow tracking regressions in the memory instrumentation coverage.

BUG=None

Review URL: https://chromiumcodereview.appspot.com/10907027

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@155016 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoConvert the popups pyauto test to browser_tests.
jam@chromium.org [Sat, 1 Sep 2012 05:50:22 +0000 (05:50 +0000)]
Convert the popups pyauto test to browser_tests.

testPopupBlockedEverySec: I didn't port this since it seemed redundant with other tests, and it's permanently disabled anyways.
testPopupBlockerEnabled is a duplicate of a subset of testLaunchBlockedPopup. same with the incognito version
testAllowPopupsFromExternalSite was really just testing that an exception works, not that it's going to an external networkw which we don't want for tests. I rewrote it to use a local url.
testBlockedPopupNotShowInHistory is testing something that's not the current behavior, which is why it's disabled. if this changes, someone can add a test for the new behavior then

BUG=143637,83827,47935
Review URL: https://chromiumcodereview.appspot.com/10913043

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@154602 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoRevert 154464 - Revert 154453 - Remove the translate pyauto test to chrome tests...
jam@chromium.org [Fri, 31 Aug 2012 18:16:20 +0000 (18:16 +0000)]
Revert 154464 - Revert 154453 - Remove the translate pyauto test to chrome tests and all the supporting automation hooks. I've added new tests for the non-duplicate cases.

Most of the Chrome tests use a test harness to avoid network requests to the Translate server, which is inline with our testing phiolosophy (i.e. new bots don't even have network access). There is a browser_test in BrowserTest.PageLanguageDetection.

testTranslate is a duplicate of TranslateManagerTest.NormalTranslate
testNoTranslate is a duplicate of TranslateManagerTest.MultipleOnPageContents and TranslateManagerTest.DenyTranslateInPageNavigation
testNeverTranslateLanguage and testAlwaysTranslateLanguage are duplicates of TranslateManagerTest.BeforeTranslateExtraButtons
testNeverTranslateSite is a duplicate of TranslateManagerTest.NeverTranslateSitePref
testRevert is a duplicate of TranslateManagerTest.ServerReportsUnsupportedLanguage
testBarNotVisibleOnSSLErrorPage seems unnecessary, i.e. we don't check that infobar comes up for all of our internal pages
testBarNotVisibleOnEnglishPage is a duplicate of TranslateManagerTest.AutoTranslateOnNavigate
testTranslateDiffURLs, like in other pyauto test suites, seems unnecessary (i.e. we don't retest every feature across all schemes)
testNotranslateMetaTag is a duplicate of ChromeRenderViewTest.TranslatablePage
testToggleTranslateOption is a duplicate of TranslateManagerTest.AlwaysTranslateLanguagePref
testGoBackAndForwardToTranslatePage: the interesting bits are tested by ChromeRenderViewTest.BackToTranslatablePage
testForCrashedTab seems unnecessary, we don't verify that all infobars are gone when a page crashes
testTranslatePrefs is a duplicate of of TranslateManagerTest.TranslateEnabledPref
testAlwaysTranslateLanguageButton and testNeverTranslateLanguageButton are duplicates of TranslateManagerTest.BeforeTranslateExtraButtons
testChangeTargetLanguageAlwaysTranslate: I added a reload step to TranslateManagerTest.NormalTranslate to cover this
testHistoryNotTranslated and testDownloadsNotTranslated: I added a simple unittest for them
testSeveralLanguages is redundant with many of the above tests
testMultipleTabsAndWindows is not very useful
testAlwaysTranslateInIncognito is a duplicate of a subset of TranslateManagerTest.AlwaysTranslateLanguagePref
testNoTranslateInfobarAfterNeverTranslate is a duplicate of TranslateManagerTest.NeverTranslateLanguagePref
testGoBackAndForwardToTranslatePage is a duplicate of ChromeRenderViewTest.BackToTranslatablePage
testSessionRestore: I added a browser test for (BrowserTest.SessionRestore)

BUG=143637,95140,129802,12648,12639
Review URL: https://chromiumcodereview.appspot.com/10922002

TBR=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10917042

TBR=dmazzoni@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10914041

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@154466 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoRevert 154453 - Remove the translate pyauto test to chrome tests and all the supporti...
dmazzoni@chromium.org [Fri, 31 Aug 2012 18:05:29 +0000 (18:05 +0000)]
Revert 154453 - Remove the translate pyauto test to chrome tests and all the supporting automation hooks. I've added new tests for the non-duplicate cases.

Most of the Chrome tests use a test harness to avoid network requests to the Translate server, which is inline with our testing phiolosophy (i.e. new bots don't even have network access). There is a browser_test in BrowserTest.PageLanguageDetection.

testTranslate is a duplicate of TranslateManagerTest.NormalTranslate
testNoTranslate is a duplicate of TranslateManagerTest.MultipleOnPageContents and TranslateManagerTest.DenyTranslateInPageNavigation
testNeverTranslateLanguage and testAlwaysTranslateLanguage are duplicates of TranslateManagerTest.BeforeTranslateExtraButtons
testNeverTranslateSite is a duplicate of TranslateManagerTest.NeverTranslateSitePref
testRevert is a duplicate of TranslateManagerTest.ServerReportsUnsupportedLanguage
testBarNotVisibleOnSSLErrorPage seems unnecessary, i.e. we don't check that infobar comes up for all of our internal pages
testBarNotVisibleOnEnglishPage is a duplicate of TranslateManagerTest.AutoTranslateOnNavigate
testTranslateDiffURLs, like in other pyauto test suites, seems unnecessary (i.e. we don't retest every feature across all schemes)
testNotranslateMetaTag is a duplicate of ChromeRenderViewTest.TranslatablePage
testToggleTranslateOption is a duplicate of TranslateManagerTest.AlwaysTranslateLanguagePref
testGoBackAndForwardToTranslatePage: the interesting bits are tested by ChromeRenderViewTest.BackToTranslatablePage
testForCrashedTab seems unnecessary, we don't verify that all infobars are gone when a page crashes
testTranslatePrefs is a duplicate of of TranslateManagerTest.TranslateEnabledPref
testAlwaysTranslateLanguageButton and testNeverTranslateLanguageButton are duplicates of TranslateManagerTest.BeforeTranslateExtraButtons
testChangeTargetLanguageAlwaysTranslate: I added a reload step to TranslateManagerTest.NormalTranslate to cover this
testHistoryNotTranslated and testDownloadsNotTranslated: I added a simple unittest for them
testSeveralLanguages is redundant with many of the above tests
testMultipleTabsAndWindows is not very useful
testAlwaysTranslateInIncognito is a duplicate of a subset of TranslateManagerTest.AlwaysTranslateLanguagePref
testNoTranslateInfobarAfterNeverTranslate is a duplicate of TranslateManagerTest.NeverTranslateLanguagePref
testGoBackAndForwardToTranslatePage is a duplicate of ChromeRenderViewTest.BackToTranslatablePage
testSessionRestore: I added a browser test for (BrowserTest.SessionRestore)

BUG=143637,95140,129802,12648,12639
Review URL: https://chromiumcodereview.appspot.com/10922002

TBR=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10917042

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/test/pyautolib@154464 4ff67af0-8c30-449e-8e8b-ad334ec8d88c