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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/time.h" | 8 #include "base/time.h" |
| 9 #include "chrome/browser/ui/ash/launcher/browser_launcher_item_controller.h" |
| 10 #include "chrome/browser/ui/ash/launcher/launcher_favicon_loader.h" |
9 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_tabstrip.h" | 12 #include "chrome/browser/ui/browser_tabstrip.h" |
11 #include "chrome/browser/ui/views/ash/launcher/browser_launcher_item_controller.
h" | |
12 #include "chrome/browser/ui/views/ash/launcher/launcher_favicon_loader.h" | |
13 #include "chrome/browser/ui/views/frame/browser_view.h" | 13 #include "chrome/browser/ui/views/frame/browser_view.h" |
14 #include "chrome/common/favicon_url.h" | 14 #include "chrome/common/favicon_url.h" |
15 #include "chrome/common/icon_messages.h" | 15 #include "chrome/common/icon_messages.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 16 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
19 #include "content/public/browser/web_contents_delegate.h" | 19 #include "content/public/browser/web_contents_delegate.h" |
20 #include "net/test/test_server.h" | 20 #include "net/test/test_server.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 NavigateTo(panel_browser, "launcher-smallfavicon.html"); | 189 NavigateTo(panel_browser, "launcher-smallfavicon.html"); |
190 EXPECT_TRUE(WaitForFaviconDownlads(1)); | 190 EXPECT_TRUE(WaitForFaviconDownlads(1)); |
191 EXPECT_TRUE(favicon_loader->GetFavicon().empty()); | 191 EXPECT_TRUE(favicon_loader->GetFavicon().empty()); |
192 ASSERT_NO_FATAL_FAILURE(ResetDownloads()); | 192 ASSERT_NO_FATAL_FAILURE(ResetDownloads()); |
193 | 193 |
194 NavigateTo(panel_browser, "launcher-largefavicon.html"); | 194 NavigateTo(panel_browser, "launcher-largefavicon.html"); |
195 EXPECT_TRUE(WaitForFaviconDownlads(1)); | 195 EXPECT_TRUE(WaitForFaviconDownlads(1)); |
196 EXPECT_FALSE(favicon_loader->GetFavicon().empty()); | 196 EXPECT_FALSE(favicon_loader->GetFavicon().empty()); |
197 EXPECT_EQ(128, favicon_loader->GetFavicon().height()); | 197 EXPECT_EQ(128, favicon_loader->GetFavicon().height()); |
198 } | 198 } |
OLD | NEW |