summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google_url_tracker_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move Google-specific code under browser/ into browser/google/.evan@chromium.org2010-08-301-458/+0
| | | | | | | | | BUG=50548 TEST=compiles Review URL: http://codereview.chromium.org/3280008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57922 0039d316-1c4b-4281-b951-d872f2087c98
* Use ChromeThread::IO instead of virtual set_request_contextukai@chromium.org2010-08-231-1/+7
| | | | | | | | | | | | ChromeThread::IO will be used to cancel URLFetcher request and clean up URLRequestContextGetter. BUG=52562,52826 TEST=valgrind passes Review URL: http://codereview.chromium.org/3176028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57032 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r56483 - Monitor network change in GoogleURLTrackerukai@chromium.org2010-08-201-26/+443
| | | | | | | | | | | | | | | | | | | | | | | | | | It changes to fetch https://www.google.com/searchdomaincheck?format=domain&type=chrome instead of checking http://www.google.com/ redirection. Also show infobar if google domain has been changed to new domain and ask user to switch new domain. Fix Win IO Perf regressions: - GoogleURLTracker::RequestServerCheck() is not called in headless mode (CHROME_HEADLESS=1) nor in Chrome Frame (--chrome-frame). Fix leaks in TestingProfile::CreateRequestContext(): 52562 - Add TestURLFetcher::set_request_context() do nothing, because TestURLFetcher might miss to release core_->request_context_getter_. Fix GoogleURLTracker observer removal DCHECK: 52608 - call RemoveAll(), instead of calling Remove()s BUG=48688,15141,52477,52562,52608 TEST=unit_tests passes Review URL: http://codereview.chromium.org/3171019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56811 0039d316-1c4b-4281-b951-d872f2087c98
* Win IO Perf Regressionsthomasvl@chromium.org2010-08-181-443/+26
| | | | | | | | | | | | | | | | http://build.chromium.org/buildbot/perf/xp-release-dual-core/moz/report.html?history=150&rev=-1&graph=total_byte_b Revert 56483 - Monitor network change in GoogleURLTracker BUG=48688,15141 TEST=GoogleURLTrackerTest.MonitorNetworkChange passes Review URL: http://codereview.chromium.org/3034018 TBR=ukai@chromium.org Review URL: http://codereview.chromium.org/3176017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56544 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 56522 - Fix leaks in GoogleURLTrackerTest::CreateRequestContext()thomasvl@chromium.org2010-08-181-5/+4
| | | | | | | | | | | | | | | | URLFetcher will release URLRequestContextGetter in CancelURLRequest, which runs in IOMessageLoopProxy. So, if a test doesn't run with IO thread, it will not run CancelURLRequest from URLFetcher::Core::Stop(). BUG=52562 TEST=./tools/valgrind/chrome_tests.sh --test unit --tool memcheck --gtest_filter='GoogleURLTrackerTest.*' Review URL: http://codereview.chromium.org/3198001 TBR=ukai@chromium.org Review URL: http://codereview.chromium.org/3160025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56543 0039d316-1c4b-4281-b951-d872f2087c98
* Fix leaks in GoogleURLTrackerTest::CreateRequestContext()ukai@chromium.org2010-08-181-4/+5
| | | | | | | | | | | | | URLFetcher will release URLRequestContextGetter in CancelURLRequest, which runs in IOMessageLoopProxy. So, if a test doesn't run with IO thread, it will not run CancelURLRequest from URLFetcher::Core::Stop(). BUG=52562 TEST=./tools/valgrind/chrome_tests.sh --test unit --tool memcheck --gtest_filter='GoogleURLTrackerTest.*' Review URL: http://codereview.chromium.org/3198001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56522 0039d316-1c4b-4281-b951-d872f2087c98
* Monitor network change in GoogleURLTrackerukai@chromium.org2010-08-181-26/+443
| | | | | | | | | BUG=48688,15141 TEST=GoogleURLTrackerTest.MonitorNetworkChange passes Review URL: http://codereview.chromium.org/3034018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56483 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore *.corp.google.* as GoogleBaseURLukai@chromium.org2010-04-271-1/+2
| | | | | | | | | | | | | On Mac (prior EasyStreet), http://www.google.com might be redirected to wifi.corp.google.com, so that google:baseURL would be set to wifi.corp.google.com, but user might want to use the URL for default search. BUG=38472 TEST=GoogleURLTrackerTest.CheckAndConvertURL passes Review URL: http://codereview.chromium.org/1780006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45674 0039d316-1c4b-4281-b951-d872f2087c98
* NO CODE CHANGEdeanm@chromium.org2009-03-101-1/+0
| | | | | | | | | Normalize end of file newlines in chrome/. All files end in a single newline. Review URL: http://codereview.chromium.org/42015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11331 0039d316-1c4b-4281-b951-d872f2087c98
* Platform cleanup in browser/ and porting of few files.phajdan.jr@chromium.org2008-12-171-1/+1
| | | | | | Review URL: http://codereview.chromium.org/14466 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7142 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 7083,7079.phajdan.jr@chromium.org2008-12-161-1/+1
| | | | | | | I tested locally with gcc 4.3, but gcc 4.2 behaves differently and fails. Review URL: http://codereview.chromium.org/14165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7087 0039d316-1c4b-4281-b951-d872f2087c98
* Platform cleanup in browser/ and porting of few files.phajdan.jr@chromium.org2008-12-161-1/+1
| | | | | | Review URL: http://codereview.chromium.org/14466 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7079 0039d316-1c4b-4281-b951-d872f2087c98
* Use a more compact license header in source files.license.bot2008-08-241-28/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1287 0039d316-1c4b-4281-b951-d872f2087c98
* Save a few lines since I don't need a test fixture. This was just silly ↵pkasting@google.com2008-07-291-3/+1
| | | | | | oversight on my part due to not having written a new unittest in a while. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome to the repository.initial.commit2008-07-261-0/+61
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15 0039d316-1c4b-4281-b951-d872f2087c98