summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/drive/drive_app_registry_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move DriveAppRegistry from c/b/chromeos/drive to c/b/drive.kinaba@chromium.org2014-01-091-140/+0
| | | | | | | | | | for using the class in other platforms outside Chrome OS. BUG=312566 Review URL: https://codereview.chromium.org/130753002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243894 0039d316-1c4b-4281-b951-d872f2087c98
* Less dependency for DriveAppRegistry.kinaba@chromium.org2014-01-081-32/+19
| | | | | | | | | | | | - It now directly accesses DriveServiceInterface instead of JobScheduler so that the class can be used outside chromeos/. - Use of ScopedVector is replaced by std::vector. BUG=332014,312566 Review URL: https://codereview.chromium.org/127683002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243662 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up DriveAppRegistry (part 1 of 2).kinaba@chromium.org2014-01-081-16/+6
| | | | | | | | | | | | | - Removed unused fields from DriveAppInfo. It is easy to recover them later when needed. - A bit of rewriting for FindPreferredIcon. BUG=332014 R=hashimoto@chromium.org Review URL: https://codereview.chromium.org/125163004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243465 0039d316-1c4b-4281-b951-d872f2087c98
* Move c/b/google_apis to google_apis/drive.kinaba@chromium.org2013-12-031-3/+3
| | | | | | | | | | BUG=146989 R=joi@chromium.org, satorux@chromium.org, tzik@chromium.org TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/96413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238306 0039d316-1c4b-4281-b951-d872f2087c98
* drive: GetAppsForFile() to take a file extension instead of a file pathsatorux@chromium.org2013-09-041-4/+4
| | | | | | | | | | | | This function only cares about file extensions, rather than file paths. BUG=284242 TEST=none R=kinaba@chromium.org Review URL: https://codereview.chromium.org/23929002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221137 0039d316-1c4b-4281-b951-d872f2087c98
* file_manager: Add DriveAppRegistry::UpdateFromAppList()satorux@chromium.org2013-08-301-0/+17
| | | | | | | | | | | | | This will be useful for writing tests for the file task stuff in chrome/browser/chromeos/extension/file_manager/file_tasks.cc. BUG=269929 TEST=none R=kinaba@chromium.org Review URL: https://codereview.chromium.org/23503008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220475 0039d316-1c4b-4281-b951-d872f2087c98
* Use std::string rather than string16 in DriveAppRegistry.kinaba@chromium.org2013-08-291-3/+2
| | | | | | | | | | | | It looks there's no reason to covert the strings to UTF16; they are just passed as-is, and finally converted back to UTF8 in base::DictionaryValue::SetString. BUG=none R=satorux@chromium.org Review URL: https://codereview.chromium.org/23582012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220224 0039d316-1c4b-4281-b951-d872f2087c98
* file_manager: Move FindPreferredIcon() to drive_app_registry.hsatorux@chromium.org2013-08-291-0/+39
| | | | | | | | | | | | | | | | This function should not belong to private_api_util.h. Along the way, add unit tests for the function, and remove the restriction that icons must be sorted by the size. Add 'const' to some methods in DriveAppRegistry too. BUG=280416 TEST=none R=kinaba@chromium.org Review URL: https://codereview.chromium.org/23453017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220178 0039d316-1c4b-4281-b951-d872f2087c98
* drive: Stop making multiple GetAppList() requests from DriveAppRegistryhashimoto@chromium.org2013-08-061-3/+17
| | | | | | | | | | | | | Calling DriveAppRegistry::Update() results in being ignored when there is an ongoing one already. Add FakeDriveService::app_list_load_count() BUG=268707 TEST=unit_tests R=hidehiko@chromium.org, kinaba@chromium.org Review URL: https://codereview.chromium.org/22297004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215806 0039d316-1c4b-4281-b951-d872f2087c98
* drive: FileSystem and JobScheduler to take PrefService instead of Profilesatorux@chromium.org2013-07-081-4/+6
| | | | | | | | | | | | | They just need PrefService instead of Profile. This change is a good thing per Law of Demeter. BUG=257919 TEST=none R=kinaba@chromium.org Review URL: https://codereview.chromium.org/18813005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210357 0039d316-1c4b-4281-b951-d872f2087c98
* Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-07-031-2/+3
| | | | | | | | | | | | Fixes a number of cases either not caught by the automated tool or that have recently regressed. BUG=110610 TBR=darin Review URL: https://codereview.chromium.org/18308004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210048 0039d316-1c4b-4281-b951-d872f2087c98
* Remove destruction-only TearDown() methods in Drive related test.kinaba@chromium.org2013-07-031-1/+0
| | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/18419004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209986 0039d316-1c4b-4281-b951-d872f2087c98
* google_apis: Move data files out of chrome/test/data/chromeossatorux@chromium.org2013-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | As these files are not Chrome OS specific. chrome/test/data/chromeos/drive -> chrome/test/data/drive chrome/test/data/chromeos/gdata -> chrome/test/data/gdata chrome/test/data/chromeos/sync_file_system -> chrome/test/data/sync_file_system chrome/test/data/chromeos/gdata/contacts is kept as is, because try bots did not work due to photo.png in the directory. Will move the directory separately. BUG=149788 TEST=none R=kinaba@chromium.org, kinuko@chromium.org Review URL: https://codereview.chromium.org/18355004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209618 0039d316-1c4b-4281-b951-d872f2087c98
* drive: Pass TaskRunner to DriveUploader explicitlyhashimoto@chromium.org2013-06-211-2/+2
| | | | | | | | | BUG=252588 TEST=unit_tests Review URL: https://chromiumcodereview.appspot.com/17520005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207852 0039d316-1c4b-4281-b951-d872f2087c98
* drive: Rename namespace in c/b/drive from google_apis to drivesatorux@chromium.org2013-06-201-2/+2
| | | | | | | | | | | | | | | | 'google_apis' is no longer the right name, as the code is moved to chrome/browser/drive. 'using google_apis::Whatever' is aggresively used in .cc files in chrome/browser/drive to minimize diffs. BUG=244325 TEST=none R=kinaba@chromium.org, kinuko@chromium.org Review URL: https://codereview.chromium.org/17479002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207331 0039d316-1c4b-4281-b951-d872f2087c98
* drive: Move DriveServiceInterface and friends to c/b/drivesatorux@chromium.org2013-06-191-1/+1
| | | | | | | | | | | | | These shouldn't be in 'google_apis' where only low level network code should be placed. BUG=244325 TEST=none R=kinaba@chromium.org, kinuko@chromium.org Review URL: https://codereview.chromium.org/17369002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207126 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up of unused test code in c/b/cros/drive and c/b/google_apis.kinaba@chromium.org2013-06-101-36/+4
| | | | | | | | | | | Found by "git grep json" in those directories for the final check for bug 244319. BUG=none Review URL: https://chromiumcodereview.appspot.com/16108006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205187 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of utf_string_conversions.h in chrome/browser/, part 1.avi@chromium.org2013-06-091-1/+1
| | | | | | | | | | BUG=none TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/15789014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205122 0039d316-1c4b-4281-b951-d872f2087c98
* chrome: Use base::MessageLoop. (Part 3)xhwang@chromium.org2013-05-281-1/+1
| | | | | | | | | | | | This CL updates chrome/browser/* other than chrome/browser/ui which is in another CL. BUG=236029 TBR=brettw Review URL: https://chromiumcodereview.appspot.com/14113053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202664 0039d316-1c4b-4281-b951-d872f2087c98
* drive: Rename DriveWebApp* to DriveAppsatorux@chromium.org2013-05-281-0/+124
The term "Drive app" is more commonly used than "Drive web app". BUG=242121 TEST=none R=hashimoto@chromium.org Review URL: https://codereview.chromium.org/15932010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202504 0039d316-1c4b-4281-b951-d872f2087c98