OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/drive/drive_app_registry.h" | 5 #include "chrome/browser/chromeos/drive/drive_app_registry.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/prefs/testing_pref_service.h" | 8 #include "base/prefs/testing_pref_service.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 10 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
11 #include "chrome/browser/chromeos/drive/test_util.h" | 11 #include "chrome/browser/chromeos/drive/test_util.h" |
12 #include "chrome/browser/drive/fake_drive_service.h" | 12 #include "chrome/browser/drive/fake_drive_service.h" |
13 #include "chrome/browser/google_apis/drive_api_parser.h" | |
14 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
15 #include "chrome/browser/google_apis/test_util.h" | |
16 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
| 14 #include "google_apis/drive/drive_api_parser.h" |
| 15 #include "google_apis/drive/gdata_wapi_parser.h" |
| 16 #include "google_apis/drive/test_util.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace drive { | 19 namespace drive { |
20 | 20 |
21 class DriveAppRegistryTest : public testing::Test { | 21 class DriveAppRegistryTest : public testing::Test { |
22 protected: | 22 protected: |
23 virtual void SetUp() OVERRIDE { | 23 virtual void SetUp() OVERRIDE { |
24 pref_service_.reset(new TestingPrefServiceSimple); | 24 pref_service_.reset(new TestingPrefServiceSimple); |
25 test_util::RegisterDrivePrefs(pref_service_->registry()); | 25 test_util::RegisterDrivePrefs(pref_service_->registry()); |
26 | 26 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // should be returned. | 154 // should be returned. |
155 EXPECT_EQ(kSmallerIconUrl, | 155 EXPECT_EQ(kSmallerIconUrl, |
156 util::FindPreferredIcon(icons, kMediumSize - 3).spec()); | 156 util::FindPreferredIcon(icons, kMediumSize - 3).spec()); |
157 // The requested size is larger than the largest icon. The largest icon | 157 // The requested size is larger than the largest icon. The largest icon |
158 // should be returned. | 158 // should be returned. |
159 EXPECT_EQ(kBiggerIconUrl, | 159 EXPECT_EQ(kBiggerIconUrl, |
160 util::FindPreferredIcon(icons, kMediumSize + 3).spec()); | 160 util::FindPreferredIcon(icons, kMediumSize + 3).spec()); |
161 } | 161 } |
162 | 162 |
163 } // namespace drive | 163 } // namespace drive |
OLD | NEW |