OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/favicon/content/content_favicon_driver.h" | 5 #include "components/favicon/content/content_favicon_driver.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
8 #include "components/favicon/core/favicon_client.h" | 9 #include "components/favicon/core/favicon_client.h" |
9 #include "components/favicon/core/favicon_handler.h" | 10 #include "components/favicon/core/favicon_handler.h" |
10 #include "components/favicon/core/favicon_service.h" | 11 #include "components/favicon/core/favicon_service.h" |
11 #include "content/public/browser/web_contents_observer.h" | 12 #include "content/public/browser/web_contents_observer.h" |
12 #include "content/public/common/favicon_url.h" | 13 #include "content/public/common/favicon_url.h" |
13 #include "content/public/test/test_renderer_host.h" | 14 #include "content/public/test/test_renderer_host.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
16 #include "ui/gfx/favicon_size.h" | 17 #include "ui/gfx/favicon_size.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 favicon::ContentFaviconDriver::FromWebContents(web_contents()); | 122 favicon::ContentFaviconDriver::FromWebContents(web_contents()); |
122 static_cast<content::WebContentsObserver*>(driver) | 123 static_cast<content::WebContentsObserver*>(driver) |
123 ->DidUpdateFaviconURL(favicon_urls); | 124 ->DidUpdateFaviconURL(favicon_urls); |
124 | 125 |
125 // Test that ContentFaviconDriver ignored the favicon url update. | 126 // Test that ContentFaviconDriver ignored the favicon url update. |
126 EXPECT_TRUE(driver->favicon_urls().empty()); | 127 EXPECT_TRUE(driver->favicon_urls().empty()); |
127 } | 128 } |
128 | 129 |
129 } // namespace | 130 } // namespace |
130 } // namespace favicon | 131 } // namespace favicon |
OLD | NEW |