summaryrefslogtreecommitdiffstats
path: root/ui/test/test_suite.cc
Commit message (Collapse)AuthorAgeFilesLines
* ui: Kill run_ui_unittests target.tfarina@chromium.org2014-01-251-74/+0
| | | | | | | | | | | | | | | | | | After r246620 nobody needs or should include ui/test/test_suite.h. That allow us to concentrate it in ui/base/. We move the run_all_unittests.cc into ui/base/test and at the same time fold test_suite.* into run_all_unittests.cc and rename UITestSuite to UIBaseTestSuite. BUG=144345,299841 TEST=ui_unittests R=tony@chromium.org,ben@chromium.org TBR=ben Review URL: https://codereview.chromium.org/142793006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247141 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Remove unnecessary pak file loading in UITestSuite.tfarina@chromium.org2014-01-081-18/+3
| | | | | | | | | | | | | | | | | | | | | We already load chrome.pak and en-US.pak which includes all the necessary strings and images for the tests. This also fixes the following errors I'm seeing in ui_unittests target. [18617:18617:0104/164229:7580537011:ERROR:memory_mapped_file.cc(23)] Couldn't open /home/tfarina/chromium/src/out_cros/Debug/ui_unittests_strings/chrome_100_percent.pak [18617:18617:0104/164229:7580537130:ERROR:data_pack.cc(78)] Failed to mmap datapack [18617:18617:0104/164229:7580537189:ERROR:resource_bundle.cc(607)] Failed to load /home/tfarina/chromium/src/out_cros/Debug/ui_unittests_strings/chrome_100_percent.pak Some features may not be available. BUG=144345 TEST=ui_unittests, app_list_unittests, message_center_unittests R=tony@chromium.org TBR=ben Review URL: https://codereview.chromium.org/104783007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243557 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Android changes.tfarina@chromium.org2013-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | A series of changes related to android code organization under ui, that came after the discussion in https://codereview.chromium.org/62203014/. - Rename ui_jni_registrar.* to ui_base_jni_registrar.* - Create a base/ directory under ui/android/java/src/org/chromium/ui, and move some java files there. - Move Surface java files into ui/android/java/src/org/chromium/ui/gl/ directory. - Rename ui_jni_headers to ui_base_jni_headers. - Create a new ui_android.gyp file under ui/android to contain ui_java target. BUG=299841 R=tedchoc@chromium.org, yfriedman@chromium.org TBR=ben Review URL: https://codereview.chromium.org/70843003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235369 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Move android C++ source files into base/android directory.tfarina@chromium.org2013-10-311-1/+1
| | | | | | | | | | BUG=299841 TEST=None, no functional changes. R=ben@chromium.org,bulach@chromium.org Review URL: https://codereview.chromium.org/51663003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232036 0039d316-1c4b-4281-b951-d872f2087c98
* gfx: Create a separate gfx component out of ui.sadrul@chromium.org2013-09-301-0/+2
| | | | | | | | | | | Landed previously in r225857, which was reverted in r225859 because it broke android tests. BUG=103304 R=ben@chromium.org Review URL: https://codereview.chromium.org/25015003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225909 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-241-1/+1
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Replace FilePath with base::FilePath in some more top level directories.brettw@chromium.org2013-02-101-2/+2
| | | | | | Review URL: https://codereview.chromium.org/12217101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181640 0039d316-1c4b-4281-b951-d872f2087c98
* Use correct favicon scale factor on Android.aruslan@chromium.org2013-01-241-0/+10
| | | | | | | | | | | | | | - Splits and moves Android's display DeviceInfo from content to gfx; - Uses DeviceInfo for Android's Screen implementation; - Uses PrimaryDisplay's scale to figure out favicon scale factor. BUG=168319 BUG=117839 TEST=manual as in 168319; AwSettingsTest#testUseWideViewportLayoutWidth Review URL: https://chromiumcodereview.appspot.com/11886074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178472 0039d316-1c4b-4281-b951-d872f2087c98
* Get 'all_unittests' and 'test_suite' building for iOS.justincohen@chromium.org2012-08-201-4/+4
| | | | | | | | | BUG=None. Review URL: https://chromiumcodereview.appspot.com/10834364 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152411 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 150411 - "Repack separate 100 / 200 / touch_100 / touch_200 files ↵flackr@chromium.org2012-08-081-1/+1
| | | | | | | | | | | | | | | into single pak files." BUG=139803 TEST=Chrome runs with ui and theme resources correctly loaded. Review URL: https://chromiumcodereview.appspot.com/10825111 TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10827225 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150570 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 150411 - Repack separate 100 / 200 / touch_100 / touch_200 files into ↵flackr@chromium.org2012-08-071-1/+1
| | | | | | | | | | | | | | | | single pak files. This broke Google Chrome Linux builders which are still looking for theme_resources_100_percent.pak. BUG=139803 TEST=Chrome runs with ui and theme resources correctly loaded. Review URL: https://chromiumcodereview.appspot.com/10825111 TBR=flackr@chromium.org Review URL: https://chromiumcodereview.appspot.com/10825234 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150450 0039d316-1c4b-4281-b951-d872f2087c98
* Repack separate 100 / 200 / touch_100 / touch_200 files into single pak files.flackr@chromium.org2012-08-071-1/+1
| | | | | | | | | BUG=139803 TEST=Chrome runs with ui and theme resources correctly loaded. Review URL: https://chromiumcodereview.appspot.com/10825111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150411 0039d316-1c4b-4281-b951-d872f2087c98
* Fix sporadic Android ui_unittest failures.benm@chromium.org2012-08-071-0/+4
| | | | | | | | | | Make sure we get the correct path to data packs on Android for the UI unit tests. Review URL: https://chromiumcodereview.appspot.com/10826148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150319 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed resource files to be more verbose, specifically:benrg@chromium.org2012-07-241-1/+1
| | | | | | | | | | | | | | | | ui_resources_standard.pak => ui_resources_100_percent.pak ui_resources_2x.pak => ui_resources_200_percent.pak ui_resources_standard.rc => ui_resources_100_percent.rc theme_resources_standard.pak => theme_resources_100_percent.pak theme_resources_2x.pak => theme_resources_200_percent.pak theme_resources_standard.rc => theme_resources_100_percent.rc BUG=120185 TEST=run chome,ash_shell confirm assets loaded Review URL: https://chromiumcodereview.appspot.com/10694170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148232 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 147288 - Renamed resource files to be more verbose, specifically:rlarocque@chromium.org2012-07-181-1/+1
| | | | | | | | | | | | | | | | | [ui,theme]_resources_standard.[pak,rc] changed to .._resources_100_percent.. and likewise [ui,theme]_resources_2x.pak changed to .._resources_200_percent.pak BUG=120185 TEST=run chome,ash_shell confirm assets loaded Review URL: https://chromiumcodereview.appspot.com/10694170 TBR=harrym@chromium.org Review URL: https://chromiumcodereview.appspot.com/10806018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147293 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed resource files to be more verbose, specifically:harrym@chromium.org2012-07-181-1/+1
| | | | | | | | | | | | | | [ui,theme]_resources_standard.[pak,rc] changed to .._resources_100_percent.. and likewise [ui,theme]_resources_2x.pak changed to .._resources_200_percent.pak BUG=120185 TEST=run chome,ash_shell confirm assets loaded Review URL: https://chromiumcodereview.appspot.com/10694170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147288 0039d316-1c4b-4281-b951-d872f2087c98
* This CL moves the contents of ui_resources_standard.grd into ↵benrg@chromium.org2012-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ui_resources.grd and theme_resources_standard.grd into theme_resources.grd. This also eliminates the following Grit outputs: ui_resources.pak ==> duplicated in each scaled-resource pak ui_resources_standard.h ==> merged into ui_resources.h ui_resources_standard_map.h ==> renamed to ui_resources_map.h ui_resources_standard_map.cc ==> renamed to ui_resources_map.cc theme_resources.rc ==> merged into theme_resources_standard.rc theme_resources.pak ==> duplicated in each scaled-resource pak theme_resources_standard.h ==> merged into theme_resources.h theme_resources_standard_map.h ==> merged into theme_resources_map.h theme_resources_standard_map.cc ==> merged into theme_resources_map.cc The image duplication is intentional; we may revisit this later. Currently the standard-size images are included twice in the Windows build, once as an rc and once as a pak. I'll fix this in a followup CL. TBR=ben@chromium.org,brettw@chromium.org,darin@chromium.org,stevenjb@chromium.org BUG=133570 TEST=Trybots, local build Review URL: https://chromiumcodereview.appspot.com/10756018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146224 0039d316-1c4b-4281-b951-d872f2087c98
* Add methods to add DataPack from open filescjhopman@chromium.org2012-07-101-1/+1
| | | | | | | | | | | | | | | | | | | On Android, renderer sandboxing prevents us from opening files and so ResourceBundle is initialized with file descriptors passed in at process creation. This change adds methods to DataPack and ResourceBundle to support loading/initializing from PlatformFile in addition to the current FilePath. Also, the current methods are renamed so that the naming is consistent between these two files. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10686005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145927 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 137734 - Select theme resources from ResourceBundle at ↵flackr@chromium.org2012-05-241-1/+1
| | | | | | | | | | | | | | | requested scale factor." Relanding original CL 137734, http://codereview.chromium.org/10387010/. TBR=aa,abodenha,ben,sail,tony BUG=123611 TEST=All try bots pass and aura runs without errors. Review URL: https://chromiumcodereview.appspot.com/10412004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138769 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 137734 - Select theme resources from ResourceBundle at requested ↵fischman@chromium.org2012-05-171-1/+1
| | | | | | | | | | | | | | | | | | scale factor. Return the best match for a requested scale factor when fetching raw image data from ResourceBundle. TBR=aa,abodenha BUG=123611 TEST=ResourceBundle.LoadImageResourceBytes Review URL: https://chromiumcodereview.appspot.com/10387010 TBR=flackr@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137738 0039d316-1c4b-4281-b951-d872f2087c98
* Select theme resources from ResourceBundle at requested scale factor.flackr@chromium.org2012-05-171-1/+1
| | | | | | | | | | | | | | Return the best match for a requested scale factor when fetching raw image data from ResourceBundle. TBR=aa,abodenha BUG=123611 TEST=ResourceBundle.LoadImageResourceBytes Review URL: https://chromiumcodereview.appspot.com/10387010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137734 0039d316-1c4b-4281-b951-d872f2087c98
* Add new ResourceBundle::Delegate interface.marshall@chromium.org2012-05-091-1/+1
| | | | | | | | | BUG=125351 TEST=ResourceBundle.* Review URL: https://chromiumcodereview.appspot.com/10270023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136039 0039d316-1c4b-4281-b951-d872f2087c98
* Add scale factor tag to data packssail@chromium.org2012-05-011-1/+3
| | | | | | | | | | | | | | This CL sets the image scale factor for data packs. This will be used by the DOM UI code to look up encoded PNG data for images with a specific scale factor. BUG=114311 TEST= Review URL: http://codereview.chromium.org/10151025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134682 0039d316-1c4b-4281-b951-d872f2087c98
* Metro/HiDPI: Move 1x icons into separate pak filesail@chromium.org2012-04-241-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132517 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132760 Review URL: https://chromiumcodereview.appspot.com/10024050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133613 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132760 - Metro/HiDPI: Move 1x icons into separate pak filevarunjain@chromium.org2012-04-181-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132517 Review URL: http://codereview.chromium.org/10024050 TBR=sail@chromium.org Review URL: https://chromiumcodereview.appspot.com/10115031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132804 0039d316-1c4b-4281-b951-d872f2087c98
* Metro/HiDPI: Move 1x icons into separate pak filesail@chromium.org2012-04-181-2/+5
| | | | | | | | | | | | | | | | | | | | | | Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132517 Review URL: http://codereview.chromium.org/10024050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132760 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132517 - Metro/HiDPI: Move 1x icons into separate pak filehbono@chromium.org2012-04-171-5/+2
| | | | | | | | | | | | | | | | | | | | | | | Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Review URL: http://codereview.chromium.org/10024050 TBR=sail@chromium.org Review URL: https://chromiumcodereview.appspot.com/10103022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132529 0039d316-1c4b-4281-b951-d872f2087c98
* Metro/HiDPI: Move 1x icons into separate pak filesail@chromium.org2012-04-171-2/+5
| | | | | | | | | | | | | | | | | | | | Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Review URL: http://codereview.chromium.org/10024050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132517 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Move gfx test suite to ui/test/.tfarina@chromium.org2012-03-291-0/+68
Currently we are using this test suite to run tests from ui/base, so it makes sense to move it up to a place that can be shared by both base/ and gfx/. TEST=ui_unittests R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9918016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129717 0039d316-1c4b-4281-b951-d872f2087c98