summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_download_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* [Autofill] Update the autocomplete types implementation to match the current ↵isherman@chromium.org2012-10-241-13/+13
| | | | | | | | | | | | | | HTML spec. The spec is currently hosted at http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute Also changes the data type of FormFieldData::autocomplete_attribute and FormFieldData::form_control_type to std::string. BUG=156508,156633 Review URL: https://chromiumcodereview.appspot.com/11198048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163764 0039d316-1c4b-4281-b951-d872f2087c98
* Move forms/ out of webkit/.blundell@chromium.org2012-10-051-5/+3
| | | | | | | | | | | | | | | | | | | | | | The motivation for this CL is to move PasswordForm and friends (which are totally unrelated to WebKit) out of webkit/ and into a target that platforms that do not use WebKit (such as iOS) can logically depend on. As such, this CL does three things: 1. Separates the WebKit-related code in webkit/forms from the non-WebKit-related code. Concretely, this means having the WebKit::WebFormElement->PasswordForm conversion function in its own file. 2. Moves the core, non-WebKit-related forms code to chrome/common and content/public/common depending on where its usage points are. 3. Moves the above-mentioned conversion function to content/public/renderer. It cannot stay in webkit/ as it (now) has a dependency on content/, and as it is used only in chrome/renderer and content/renderer, this is a good place for it. The rest of this CL is churn due to namespace, file location, and GYP target changes. BUG= Review URL: https://chromiumcodereview.appspot.com/11000016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160280 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to TimeDelta interfaces for TestTimeouts in autofill unit test.tedvessenes@gmail.com2012-07-091-4/+2
| | | | | | | | | | R=dhollowa@chromium.org BUG=108171 Review URL: https://chromiumcodereview.appspot.com/10704116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145688 0039d316-1c4b-4281-b951-d872f2087c98
* Move test_url_fetcher_factory.* from content/ to net/url_requestakalin@chromium.org2012-06-191-6/+6
| | | | | | | | | | | | | | | | Also mark URLFetcherImpl as NET_EXPORT_PRIVATE instead of NET_EXPORT, as it shouldn't be used except for some code in test_url_fetcher_factory.*. Update all references. BUG=118220 TEST= TBR=jam@chromium.org,jhawkins@chromium.org,mnissler@chromium.org Review URL: https://chromiumcodereview.appspot.com/10581012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143085 0039d316-1c4b-4281-b951-d872f2087c98
* Move the rest of the content\test headers that are used by embedders to ↵jam@chromium.org2012-06-041-1/+1
| | | | | | | | | | content\public\test. This way we can enforce that internal content headers don't leak to embedders. BUG=98716 TBR=phajdan.jr Review URL: https://chromiumcodereview.appspot.com/10483003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140287 0039d316-1c4b-4281-b951-d872f2087c98
* Move test_browser_thread.h from content\test to content\public\test. This ↵jam@chromium.org2012-06-041-1/+1
| | | | | | | | | | way we can enforce that internal content headers don't leak to embedders. BUG=98716 TBR=phajdan.jr Review URL: https://chromiumcodereview.appspot.com/10500016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140254 0039d316-1c4b-4281-b951-d872f2087c98
* Move TestURLRequestContextGetter to url_request_test_util.{h,cc}akalin@chromium.org2012-03-021-2/+1
| | | | | | | | | | | Make everything use this instead of rolling their own. BUG=113723 TEST= Review URL: https://chromiumcodereview.appspot.com/9562037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124758 0039d316-1c4b-4281-b951-d872f2087c98
* Group forms-related files in webkit/glue in a forms/ subdirectory.isherman@chromium.org2011-12-151-3/+3
| | | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/8680040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114581 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to IWYU for files that previously were getting a bunch ofjoi@chromium.org2011-12-011-0/+1
| | | | | | | | | | | header files via io_thread.h or browser_thread.h TBR=owners (previously approved on codereview 8477004) BUG=98716 Review URL: http://codereview.chromium.org/8746023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112455 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to composition for TestBrowserThread.joi@chromium.org2011-11-031-5/+2
| | | | | | | | | | | | | | This avoids exposing BrowserThreadImpl internals outside of content/, and goes most of the way to not exposing the fact that underneath, it is a base::Thread. There are only three test files that use the TestBrowserThread::DeprecatedGetThreadObject method. TBR=owners BUG=98716 Review URL: http://codereview.chromium.org/8440039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108452 0039d316-1c4b-4281-b951-d872f2087c98
* Move BrowserThread to content namespace.joi@chromium.org2011-11-021-0/+1
| | | | | | | | | TBR=owners BUG=98716 Review URL: http://codereview.chromium.org/8437002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108270 0039d316-1c4b-4281-b951-d872f2087c98
* Split BrowserThread into public API and private implementation, step 1.joi@chromium.org2011-10-281-1/+2
| | | | | | | | | | | | | | | | | | | | | Only content/ now has the ability to create BrowserThread objects, with the exception that tests can create the content::TestBrowserThread subclass, and (temporarily) code in chrome/ can create the DeprecatedBrowserThread subclass. A follow-up change will make content/ take care of its own thread creation, remove DeprecatedBrowserThread, and move all state and non-trivial constructors from BrowserThread down to BrowserThreadImpl. Also moved BrowserProcessSubThread into content/ namespace. As part of follow-up cleanup, chrome/ will stop using this class. BUG=98716 TEST=existing Review URL: http://codereview.chromium.org/8392042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107718 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce visibility of methods in AutofillManager and AutofillDownload.isherman@chromium.org2011-10-281-10/+9
| | | | | | | | | | | | Also remove some obsolete code and simplify some of the code's expectations. BUG=none TEST=none Review URL: http://codereview.chromium.org/8351027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107680 0039d316-1c4b-4281-b951-d872f2087c98
* Make test URLFetcher implementations not derive from the URLFetcher ↵jam@chromium.org2011-10-261-2/+2
| | | | | | | | | | | implementation, since we want to hide that from chrome completely. SetBackoffDelayForTesting moves from content::UrlFetcher to TestURLFetcher, now that the test objects derive from it. BUG=98716 Review URL: http://codereview.chromium.org/8395038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107468 0039d316-1c4b-4281-b951-d872f2087c98
* Create a content::UrlFetcher interface that lives in content/public/common ↵jam@chromium.org2011-10-251-2/+2
| | | | | | | | | and convert users to it. I have added a static create function, but will switch instantiations to use it in another change since this has grown a lot. Basically this change converts function names away from unix_hacker style, which they shouldn't have been using anyways since some are virtual, and made all of the other functions virtual. BUG=98716 Review URL: http://codereview.chromium.org/8375039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107151 0039d316-1c4b-4281-b951-d872f2087c98
* Don't pass around ScopedVectors(), prefer passing std::vector instead.isherman@chromium.org2011-10-211-10/+10
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8229033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106803 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r106646 "Don't pass around ScopedVectors(), prefer passing ↵maruel@chromium.org2011-10-211-10/+10
| | | | | | | | | | | | | std::vector instead." It's probably introducing flakiness in browser_tests:DownloadsApiTest.Downloads on Mac only. BUG= TEST= Review URL: http://codereview.chromium.org/8361033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106714 0039d316-1c4b-4281-b951-d872f2087c98
* Don't pass around ScopedVectors(), prefer passing std::vector instead.isherman@chromium.org2011-10-211-10/+10
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8229033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106646 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for 97741: AutofillDownloadManager should not use deprecated ↵georgey@chromium.org2011-10-171-61/+40
| | | | | | | | | | GetDefaultRequestContext. BUG=97741 TEST=unit-tested Review URL: http://codereview.chromium.org/8319018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105966 0039d316-1c4b-4281-b951-d872f2087c98
* more content exports needed for unit_tests and browser_tests.dpranke@chromium.org2011-09-301-2/+2
| | | | | | | | | | R=jam@chromium.org BUG=90442 TEST= Review URL: http://codereview.chromium.org/8082019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103584 0039d316-1c4b-4281-b951-d872f2087c98
* Update OnURLFetchComplete() to use new params in AutofillDownloadManager.skerner@chromium.org2011-09-231-36/+25
| | | | | | | | | BUG=83592 TEST=compiles Review URL: http://codereview.chromium.org/7979015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102493 0039d316-1c4b-4281-b951-d872f2087c98
* Autofill/Valgrind: Fix a leak in AutofillDownloadTest.jhawkins@chromium.org2011-09-161-113/+130
| | | | | | | | | | | | | | URLRequestContextGetter requires the object to be released on the IO thread. Also made quite a few cleanups. BUG=75247 TEST=AutofillDownloadTest.* R=isherman@chromium.org Review URL: http://codereview.chromium.org/7886047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101433 0039d316-1c4b-4281-b951-d872f2087c98
* Switch ChromeTestSuite to the same convention as ContentTestSuite:phajdan.jr@chromium.org2011-08-271-2/+1
| | | | | | | | | | | | | | | | | the test suite implicitly provides global resources for each test, but they're re-initialized between each test. The performance overhead is negligible. We need that to continue moving tests from unit_tests to content_unittests. Because of shared test fixtures the test suites need to be compatible. BUG=90443 Review URL: http://codereview.chromium.org/7744039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98526 0039d316-1c4b-4281-b951-d872f2087c98
* Reorganize chrome/test, part #9phajdan.jr@chromium.org2011-08-111-2/+2
| | | | | | | | | TBR=jcivelli BUG=90905 Review URL: http://codereview.chromium.org/7616019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96453 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor webkit_glue::FormField to remove hacky methods: Remove ↵isherman@chromium.org2011-08-091-104/+87
| | | | | | | | | | | webkit_glue::FormField's unwieldy full constructor and StricktlyEqualsHack() method. The only clients are in test code, and we can better support these clients in other ways. BUG=none TEST=none Review URL: http://codereview.chromium.org/7576001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95928 0039d316-1c4b-4281-b951-d872f2087c98
* Move more files from chrome/test to chrome/test/base, part #4phajdan.jr@chromium.org2011-08-011-1/+1
| | | | | | | BUG=90905 Review URL: http://codereview.chromium.org/7544021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94963 0039d316-1c4b-4281-b951-d872f2087c98
* Move more files from chrome/test to chrome/test/base, part #3phajdan.jr@chromium.org2011-07-291-1/+1
| | | | | | | BUG=90905 Review URL: http://codereview.chromium.org/7541001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94780 0039d316-1c4b-4281-b951-d872f2087c98
* Add a scoper object for URLFetcher::Factoryphajdan.jr@chromium.org2011-07-291-9/+1
| | | | | | | | | | This should make it much safer to use (i.e. memory-safe). BUG=90585 Review URL: http://codereview.chromium.org/7524033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94694 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up AutofillDownloadManager; don't use "heuristics" to refer to ↵isherman@chromium.org2011-06-151-5/+4
| | | | | | | | | | | non-client predictions. BUG=none TEST=none Review URL: http://codereview.chromium.org/7173002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89143 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for the "uploadrequired" attribute for Autofill query responsesisherman@chromium.org2011-06-021-2/+2
| | | | | | | | | BUG=84693 TEST=unit_tests --gtest_filter=AutofillDownloadTest.QueryAndUploadTest Review URL: http://codereview.chromium.org/6969090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87729 0039d316-1c4b-4281-b951-d872f2087c98
* Move UrlFetcher to content. I originally thought that it's only used by ↵jam@chromium.org2011-06-011-1/+1
| | | | | | | | | chrome code, but turns out there are legitimate content uses for HTML5 features like speech/geolocation which need to go to the web. BUG=76697 Review URL: http://codereview.chromium.org/7006005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87406 0039d316-1c4b-4281-b951-d872f2087c98
* Set datapresent string to contain precisely those field types available in ↵isherman@chromium.org2011-05-061-6/+13
| | | | | | | | | | | | | stored Autofill data. This is what the toolbar server expects of all of its clients. BUG=none TEST=unit_tests --gtest_filter=PersonalDataManagerTest.GetAvailableFieldTypes:FormStructureTest.* Review URL: http://codereview.chromium.org/6931029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84405 0039d316-1c4b-4281-b951-d872f2087c98
* net: Move ResponseCookies into the net namespace.tfarina@chromium.org2011-05-061-9/+9
| | | | | | | | | | | BUG=81612 TEST=None R=wtc@chromium.org,willchan@chromium.org Review URL: http://codereview.chromium.org/6932025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84375 0039d316-1c4b-4281-b951-d872f2087c98
* Address some style nits with Autofill metricsisherman@chromium.org2011-04-291-11/+21
| | | | | | | | | | | Addressing Jim's nits from http://codereview.chromium.org/6820062/ BUG=none TEST=none Review URL: http://codereview.chromium.org/6897030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83459 0039d316-1c4b-4281-b951-d872f2087c98
* Moved URLRequestContextGetter to net/ so it can be used by projects such as ↵sanjeevr@chromium.org2011-03-311-1/+1
| | | | | | | | | | jingle. BUG=None TEST=Build. Review URL: http://codereview.chromium.org/6778025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80033 0039d316-1c4b-4281-b951-d872f2087c98
* iwyu: Cleanup in the following files:jhawkins@chromium.org2011-03-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * autofill_download.cc * autofill_ie_toolbar_import_win.cc * autofill_field.h * autofill_metrics.cc * autofill_profile.cc * autofill_type.cc * autofill_xml_parser.cc * contact_info.cc * credit_card.cc * credit_card_field.cc * fax_number.h * form_field.cc BUG=none TEST=none R=dhollowa@chromium.org Review URL: http://codereview.chromium.org/6775005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79839 0039d316-1c4b-4281-b951-d872f2087c98
* autofill: Rename all the entries remaining with AutoFill to Autofill.tfarina@chromium.org2011-03-211-3/+3
| | | | | | | | | | R=isherman@chromium.org,dhollowa@chromium.org BUG=72758 TEST=existing unit_tests Review URL: http://codereview.chromium.org/6688053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78856 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for autofill DCHECKgeorgey@chromium.org2011-03-081-2/+15
| | | | | | | | BUG=74492 TEST=unit-tested Review URL: http://codereview.chromium.org/6621004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77213 0039d316-1c4b-4281-b951-d872f2087c98
* autofill: Rename AutoFillMetrics to AutofillMetrics.tfarina@chromium.org2011-03-011-15/+15
| | | | | | | | | BUG=72758 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/6602001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76330 0039d316-1c4b-4281-b951-d872f2087c98
* autofill: Rename AutoFillDownloadManager to AutofillDownloadManager.tfarina@chromium.org2011-02-281-20/+20
| | | | | | | | | BUG=72758 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/6591029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76196 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Use a fresh TestingBrowserProcess for each test, part #1phajdan.jr@chromium.org2011-02-151-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | This is going to be done in multiple steps, because lots of tests depend on global TestingBrowserProcess. However, the current solution is very error-prone, and may lead to state being carried from one test to another (via NotificationService), resulting in crashes. In theory the ScopedTestingBrowserProcess could be made empty for now, but re-initializing g_browser_process inside it has two benefits: 1) It verifies that changing g_browser_process actually works. 2) It protects at least a subset of tests from carrying state. BUG=61062 TEST=unit_tests, possibly more Review URL: http://codereview.chromium.org/6478005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74926 0039d316-1c4b-4281-b951-d872f2087c98
* Enable AutoFill crowdsourcing for Chromium builds as well.isherman@chromium.org2011-02-051-2/+0
| | | | | | | | | BUG=71869 TEST=none Review URL: http://codereview.chromium.org/6246100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73921 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for: Autofill should not ping the server again for the same formgeorgey@chromium.org2011-01-261-1/+189
| | | | | | | | BUG=67039 TEST=unit-tested. Any network sniffer could be used to test that there no subsequent calls to the web for the same form. Review URL: http://codereview.chromium.org/6366014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72585 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-1/+1
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71585 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequestStatus URLRequestStatus;tfarina@chromium.org2011-01-131-6/+11
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/6166010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71285 0039d316-1c4b-4281-b951-d872f2087c98
* Add some basic success/failure UMA logging for autofill.isherman@chromium.org2010-12-151-7/+25
| | | | | | | | | BUG=none TEST=unit_tests --gtest_filter=AutoFillMetricsTest.* Review URL: http://codereview.chromium.org/5703002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69232 0039d316-1c4b-4281-b951-d872f2087c98
* Once a form has been partially autofilled, autofill should only update ↵isherman@chromium.org2010-11-291-11/+22
| | | | | | | | | | | fields one at a time. BUG=63437, 62638 TEST=unit_tests --gtest_filter=AutoFillManagerTest.* Review URL: http://codereview.chromium.org/5334005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67599 0039d316-1c4b-4281-b951-d872f2087c98
* Move TestTimeouts from chrome/test to base/test.sergeyu@chromium.org2010-10-051-2/+1
| | | | | | | | | BUG=None TEST=unittests Review URL: http://codereview.chromium.org/3544008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61540 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: use chrome/test/test_timeouts in more places.phajdan.jr@chromium.org2010-09-301-5/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3512001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61038 0039d316-1c4b-4281-b951-d872f2087c98
* Autofill address line 2 is not applied to ebay.comdhollowa@chromium.org2010-08-261-1/+1
| | | | | | | | | | | Fixes heuristics to include "suite" and "unit" when matching address line 2. BUG=48197 TEST=FormStructureTest.TwoAddressLinesSkipSuite, FormStructureTest.TwoAddressLinesDontSkipSuite Review URL: http://codereview.chromium.org/3134042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57596 0039d316-1c4b-4281-b951-d872f2087c98