summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_encoding_uitest.cc
Commit message (Collapse)AuthorAgeFilesLines
* disable a broken test caseestade@chromium.org2011-09-091-2/+3
| | | | | | | | | BUG=95963 TEST=waterfall Review URL: http://codereview.chromium.org/7859027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100340 0039d316-1c4b-4281-b951-d872f2087c98
* Move in_process_browser_test and ui_test_utils to chrome/test/basephajdan.jr@chromium.org2011-07-291-1/+1
| | | | | | | BUG=90905 Review URL: http://codereview.chromium.org/7532034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94720 0039d316-1c4b-4281-b951-d872f2087c98
* Move the save file code from chrome to content. This is just a file move so ↵jam@chromium.org2011-07-141-1/+1
| | | | | | | | | | | the DEPS in content\browser\download is very permissive for now. The one exception is save_package.cc, where I had to split off the usage of SelectFileDialog because the code depended on grit which can't be used in content (circular dependencies in gyp). TBR=rdsmith BUG=82782 Review URL: http://codereview.chromium.org/7373004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92623 0039d316-1c4b-4281-b951-d872f2087c98
* Fix TODO(evanm) about only having ui_test.h forward declare AutomationProxy.darin@chromium.org2011-06-271-0/+1
| | | | | | | | R=evan@chromium.org Review URL: http://codereview.chromium.org/7243011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90666 0039d316-1c4b-4281-b951-d872f2087c98
* Remove most of the remaining test dependencies (other than chrome/test).jam@chromium.org2011-06-141-1/+1
| | | | | | | | | | | I moved FindPasteboard since it seemed like a core dependency of the clipboard APIs. I left its test behind because I didn't think we'd want to move cocoa_test_helper.h to content? I moved all the testing URLRequestObjects to content, since we'll want to have stuff like that for content tests. BUG=76697 Review URL: http://codereview.chromium.org/7149013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89063 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_temp_dir and scoped_native_library back from base/memory to base.thakis@chromium.org2011-05-191-2/+2
| | | | | | | | | | | It looks like they got moved accidentally in http://codereview.chromium.org/6714032 BUG=none TEST=none Review URL: http://codereview.chromium.org/7048007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86010 0039d316-1c4b-4281-b951-d872f2087c98
* Mark TestEncodingAliasMapping flaky on mac.atwilson@chromium.org2011-05-131-0/+4
| | | | | | | | BUG=82616 TEST=Watch test go green on mac build bots. TBR=jnd git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85345 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Disable BrowserEncodingTest.TestEncodingAutoDetect on CrOS. It's almost ↵thestig@chromium.org2010-10-201-2/+8
| | | | | | | | | | always failing and takes way too long to timeout. BUG=44666 TEST=Faster cycle times. Review URL: http://codereview.chromium.org/3943001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63188 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: remove flaky mark from following tests:phajdan.jr@chromium.org2010-09-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | - FilePathWatcherTest.DeleteAndRecreate (bug 54822) - FilePathWatcherTest.DirectoryChain (bug 54822) - FilePathWatcherTest.MoveChild (bug 54822) - FilePathWatcherTest.MoveParent (bug 54822) - FilePathWatcherTest.NonExistentDirectory (bug 54822) - AccountScreenTest.TestSchemeInspector (bug 46274) - SavePageBrowserTest.SaveCompleteHTML (bug 52292) - DownloadRequestLimiterTest.Allow (bug 39753) - PPAPITest.Graphics2D (bug 54150) - ExtensionApiTest.Storage (bug 42943) - BrowserEncodingTest.TestEncodingAliasMapping (bug 51716) - BrowserCrApplicationAppleScriptTest.InsertWindow (bug 53584) - ExtensionInstallUIBrowserTest.TestThemeInstallUndoResetsToDefault (bug 43441) TBR=mal BUG=54822, 46274, 52292, 39753, 54150, 42943, 51716, 53584, 43441 TEST=none Review URL: http://codereview.chromium.org/3545003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60923 0039d316-1c4b-4281-b951-d872f2087c98
* Make prefs use std::string for keys rather than wstrings.viettrungluu@chromium.org2010-08-111-1/+1
| | | | | | | | | | | Much remains to be converted. BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3076037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55660 0039d316-1c4b-4281-b951-d872f2087c98
* Marking BrowserEncodingTest.TestEncodingAliasMapping as flaky.mirandac@chromium.org2010-08-101-1/+2
| | | | | | | | | BUG=51716 TEST=none Review URL: http://codereview.chromium.org/3122007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55619 0039d316-1c4b-4281-b951-d872f2087c98
* Change a bunch of string types.estade@chromium.org2010-06-291-1/+1
| | | | | | | | | | | | | Started out just trying to change PrefService::GetString and ::SetString. This snowballed a little bit. Had to change a bunch of url strings in search_engines/ from wstring to string (some of them may be better off as GURLs, but UTF-8 is a step in the right direction, since that's what GURL uses internally, as well as externally via its setters/getters). TODO (later patch): things that ask for accepted languages should use std::string, not std::wstring. BUG=none TEST=try bots Review URL: http://codereview.chromium.org/2854015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51157 0039d316-1c4b-4281-b951-d872f2087c98
* Marking BrowserEncodingTest.TestOverrideEncoding as FLAKY.robertshield@chromium.org2010-05-201-1/+2
| | | | | | | | | | Bug=44668 TEST=none TBR=cbentzel Review URL: http://codereview.chromium.org/2106020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47817 0039d316-1c4b-4281-b951-d872f2087c98
* Marking BrowserEncodingTest.TestEncodingAutoDetect as FLAKY. robertshield@chromium.org2010-05-201-1/+2
| | | | | | | | | | BUG=44666 TEST=none TBR=cbentzel Review URL: http://codereview.chromium.org/2071021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47814 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r46909: "Reland r46681: Use IPC to wait for download in DownloadTest."bauerb@chromium.org2010-05-111-2/+2
| | | | | | | | | | TBR=bauerb TEST=ui_tests on 10.6 and ChromiumOS should go green. BUG=43066 Review URL: http://codereview.chromium.org/1985014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46915 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r46681: Use IPC to wait for download in DownloadTest.bauerb@chromium.org2010-05-111-2/+2
| | | | | | | | | | | | | Add AutomationMsg_WaitForDownloadShelfVisibilityChange and use it in UITestBase for the download tests. This should decrease flakiness of download tests. TEST=DownloadTest.*, especially DownloadTest.[Dont]CloseNewTab* BUG=43066 Review URL: http://codereview.chromium.org/2051002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46909 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 46681 - Add AutomationMsg_WaitForDownloadShelfVisibilityChange and ↵bauerb@chromium.org2010-05-071-2/+2
| | | | | | | | | | | | | | | | use it in UITestBase for the download tests. This should decrease flakiness of download tests. TEST=DownloadTest.*, especially DownloadTest.[Dont]CloseNewTab* BUG=43066 Review URL: http://codereview.chromium.org/1933005 TBR=bauerb@chromium.org Review URL: http://codereview.chromium.org/2037003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46685 0039d316-1c4b-4281-b951-d872f2087c98
* Add AutomationMsg_WaitForDownloadShelfVisibilityChange and use it in ↵bauerb@chromium.org2010-05-071-2/+2
| | | | | | | | | | | | | UITestBase for the download tests. This should decrease flakiness of download tests. TEST=DownloadTest.*, especially DownloadTest.[Dont]CloseNewTab* BUG=43066 Review URL: http://codereview.chromium.org/1933005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46681 0039d316-1c4b-4281-b951-d872f2087c98
* Enable more parts of automation on all platforms:phajdan.jr@chromium.org2010-05-041-5/+0
| | | | | | | | | | | | | | | | | | - overriding encoding - printing Initially we couldn't compile them on all platforms, now it's possible. Overriding of encoding works fully everywhere (this also enables a test for that), printing might hit some NOTIMPLEMENTEDs on non-Windows platforms. TEST=none BUG=none Review URL: http://codereview.chromium.org/1943001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46359 0039d316-1c4b-4281-b951-d872f2087c98
* Merge UiTest::GetTest* and ui_test_utils::GetTest*. Convert these utility ↵thestig@chromium.org2010-03-311-3/+3
| | | | | | | | | | functions to use FilePaths. BUG=none TEST=none Review URL: http://codereview.chromium.org/1567009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43190 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Various ui tests cleanups:phajdan.jr@chromium.org2010-03-261-7/+4
| | | | | | | | | | | | | | | | - unify timeout handling - remove unneccessary assertions that clutter the code They were mostly there because earlier the automation framework was less reliable. Now the same checks (or equivalent) are always done in the framework itself. TEST=none BUG=none Review URL: http://codereview.chromium.org/1377001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42767 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Make automation framework more solid by making sure thatphajdan.jr@chromium.org2010-03-161-1/+2
| | | | | | | | | | | | | | | | | | | important return values are not ignored. The macro used here, WARN_UNUSED_RESULT, takes effect only for GCC, but that's enough since we have bots for all platforms. Adding these warnings already detected some cases where a return value was ignored. In some of them the test was trying to get the information about success "some other way", in some it could sometimes confuse test failure with test success. TEST=ui_tests BUG=none Review URL: http://codereview.chromium.org/948002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41696 0039d316-1c4b-4281-b951-d872f2087c98
* Putting back tests that are excluded in bug 28808oshima@chromium.org2009-12-221-7/+0
| | | | | | | | | BUG=28808 TEST=Run ui_tests Review URL: http://codereview.chromium.org/502071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35180 0039d316-1c4b-4281-b951-d872f2087c98
* Flaky tests on linux/view/64bit builds.oshima@chromium.org2009-11-251-0/+7
| | | | | | | | | | | Also updated browser_tests to use #define instead of #if/else, like other tests. BUG=28808 TEST=None Review URL: http://codereview.chromium.org/442012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33137 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 31419 - Commit Issue 255057: Unit Test for Toggling of Encoding ↵willchan@chromium.org2009-11-091-89/+2
| | | | | | | | | | | | | AutoDetect BUG=23617 TEST=BrowserEncodingTest.TestToggleAutoDetect TBR=rolandsteiner@chromium.org Review URL: http://codereview.chromium.org/378031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31465 0039d316-1c4b-4281-b951-d872f2087c98
* Commit Issue 255057: Unit Test for Toggling of Encoding Auto-Detectrolandsteiner@chromium.org2009-11-091-2/+89
| | | | | | | | BUG=23617 TEST=BrowserEncodingTest.TestToggleAutoDetect git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31419 0039d316-1c4b-4281-b951-d872f2087c98
* Use FilePath in URLRequestMocks.evan@chromium.org2009-10-141-3/+3
| | | | | | | | | BUG=24672 TEST=compiles Review URL: http://codereview.chromium.org/271066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29013 0039d316-1c4b-4281-b951-d872f2087c98
* TestOverrideEncoding hanging is because TabProxy::WaitForNavigation can not ↵jnd@chromium.org2009-10-041-1/+1
| | | | | | | | | | | | | | | | | | | get reply if current last last_navigation_time for tab _tracker is great than the input last_navigation_time. See AutomationProvider::WaitForNavigation, it is handled by IPC_MESSAGE_HANDLER_DELAY_REPLY, which means the message handler need to send the reply message by itself. According to current WaitForNavigation logic, if current last last_navigation_time for tab _tracker is less than the input last_navigation_time, the replay will be sent by NavigationNotificationObserver. Otherwise, the reply will never be sent. So if somehow the test machine is slow, the navigation has happened before calling AutomationProvider::WaitForNavigation, the caller will never get reply. That is why TestOverrideEncoding hangs sometimes. Please refer to http://chrome-svn/viewvc/chrome?view=rev&revision=9585 to see how the logic was changed before. The problem also happened on other two places. BUG=23121 TEST=BrowserEncodingTest.TestOverrideEncoding Review URL: http://codereview.chromium.org/242024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27966 0039d316-1c4b-4281-b951-d872f2087c98
* Update the TabContents::SavePage parameter to take FilePath instead of ↵rsesek@chromium.org2009-09-261-4/+2
| | | | | | | | | | | | wstring to avoid conversions "To and From wstring". BUG=None TEST=run unit_tests.exe Review URL: http://codereview.chromium.org/217008 Patch from tfarina. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27331 0039d316-1c4b-4281-b951-d872f2087c98
* Disable TestOverrideEncoding test. It's been hanging the XP Tests (dbg)(3) ↵thestig@chromium.org2009-09-251-1/+1
| | | | | | | | | | | ui_test all day. BUG=23121 TEST=none TBR=jnd Review URL: http://codereview.chromium.org/252007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27264 0039d316-1c4b-4281-b951-d872f2087c98
* Speed up the BrowserEncodingTest.TestEncodingAutoDetect.jnd@chromium.org2009-09-221-10/+10
| | | | | | | | | | | The main way is making the sleep timout shorter. BUG=22063 TEST=BrowserEncodingTest.TestEncodingAutoDetect. Review URL: http://codereview.chromium.org/209030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26787 0039d316-1c4b-4281-b951-d872f2087c98
* Convert std::wstring encoding names to std::string in a bunch of files.tony@chromium.org2009-09-041-54/+54
| | | | | | | | | | | | | | | BUG=8647 (http://crbug.com/8647) TEST=run unit_tests.exe and ui_tests.exe Original patch by Thiago Farina <thiago.farina@gmail.com> at http://codereview.chromium.org/179057/show Some linux related fixes by me. Review URL: http://codereview.chromium.org/192017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25529 0039d316-1c4b-4281-b951-d872f2087c98
* Alias 'US-ASCII' to 'ISO-8859-1' in our UI without touching webkit.BUG=15801jnd@chromium.org2009-09-021-0/+1
| | | | | | | TEST=Add US-ASCII encoding to browser encoding test Review URL: http://codereview.chromium.org/178017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25168 0039d316-1c4b-4281-b951-d872f2087c98
* Fix BrowserEncodingTest to use FilePaths and cleanup temporary files.thestig@chromium.org2009-09-021-122/+103
| | | | | | | | BUG=none TEST=Running this test should not leave extra files in the temp dir. Review URL: http://codereview.chromium.org/176057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25153 0039d316-1c4b-4281-b951-d872f2087c98
* Disable this test of encoding override on MacOS and Linux because on those ↵jnd@chromium.org2009-08-221-0/+5
| | | | | | | | | | | | | | platforms AutomationProvider::OverrideEncoding is not implemented yet. BUG=none TEST=none TBR=jshin Review URL: http://codereview.chromium.org/174305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24078 0039d316-1c4b-4281-b951-d872f2087c98
* Use size_t to fix compilation error.jnd@chromium.org2009-08-221-2/+2
| | | | | | | | TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24077 0039d316-1c4b-4281-b951-d872f2087c98
* Use ARRAYSIZE_UNSAFEjnd@chromium.org2009-08-221-2/+2
| | | | | | | | | BUG=none TEST=none TBR=jshik git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24076 0039d316-1c4b-4281-b951-d872f2087c98
* arraysize doesn't accept a type defined inside a function. In these rarejnd@chromium.org2009-08-221-2/+2
| | | | | | | | | | | cases, I have to use the unsafe ARRAYSIZE_UNSAFE() macro BUG=none TEST=none TRB=jshik git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24075 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compilation failure on Mac and Linuxjnd@chromium.org2009-08-221-11/+18
| | | | | | | | | | | BUG=none TEST=none TBR=jshin Review URL: http://codereview.chromium.org/174304 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24074 0039d316-1c4b-4281-b951-d872f2087c98
* Add a UI test for "Encoding" menu. Please see crbug.com/5515 for more ↵jnd@chromium.org2009-08-221-0/+305
details.This change list is based on http://codereview.chromium.org/18417 which was written by xlyuan@chromiumBug=5515 ( http://crbug.com/5515 ) Review URL: http://codereview.chromium.org/165393 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24073 0039d316-1c4b-4281-b951-d872f2087c98