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/drive/drive_app_registry.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "chrome/browser/drive/fake_drive_service.h" | 9 #include "chrome/browser/drive/fake_drive_service.h" |
10 #include "content/public/test/test_browser_thread_bundle.h" | 10 #include "content/public/test/test_browser_thread_bundle.h" |
11 #include "google_apis/drive/drive_api_parser.h" | 11 #include "google_apis/drive/drive_api_parser.h" |
12 #include "google_apis/drive/gdata_wapi_parser.h" | 12 #include "google_apis/drive/gdata_wapi_parser.h" |
13 #include "google_apis/drive/test_util.h" | 13 #include "google_apis/drive/test_util.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // should be returned. | 131 // should be returned. |
132 EXPECT_EQ(kSmallerIconUrl, | 132 EXPECT_EQ(kSmallerIconUrl, |
133 util::FindPreferredIcon(icons, kMediumSize - 3).spec()); | 133 util::FindPreferredIcon(icons, kMediumSize - 3).spec()); |
134 // The requested size is larger than the largest icon. The largest icon | 134 // The requested size is larger than the largest icon. The largest icon |
135 // should be returned. | 135 // should be returned. |
136 EXPECT_EQ(kBiggerIconUrl, | 136 EXPECT_EQ(kBiggerIconUrl, |
137 util::FindPreferredIcon(icons, kMediumSize + 3).spec()); | 137 util::FindPreferredIcon(icons, kMediumSize + 3).spec()); |
138 } | 138 } |
139 | 139 |
140 } // namespace drive | 140 } // namespace drive |
OLD | NEW |