Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: chrome/browser/manifest/manifest_icon_selector_unittest.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/manifest/manifest_icon_selector_unittest.cc
diff --git a/chrome/browser/manifest/manifest_icon_selector_unittest.cc b/chrome/browser/manifest/manifest_icon_selector_unittest.cc
index fbd3eb1115cb0b0d32129045d00ca9c701b67e57..6750957c6aeb730431b0d6074a40b4ef67f34308 100644
--- a/chrome/browser/manifest/manifest_icon_selector_unittest.cc
+++ b/chrome/browser/manifest/manifest_icon_selector_unittest.cc
@@ -11,7 +11,6 @@
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/screen.h"
-#include "ui/gfx/screen_type_delegate.h"
#include "ui/gfx/test/test_screen.h"
class ManifestIconSelectorTest : public testing::Test {
@@ -19,16 +18,18 @@ class ManifestIconSelectorTest : public testing::Test {
ManifestIconSelectorTest() {
test_screen_.display()->set_id(0x1337);
test_screen_.display()->set_bounds(gfx::Rect(0, 0, 2560, 1440));
+ gfx::Screen::SetScreenInstance(&test_screen_);
}
- ~ManifestIconSelectorTest() override {}
+ ~ManifestIconSelectorTest() override {
+ gfx::Screen::SetScreenInstance(nullptr);
+ }
GURL FindBestMatchingIconWithMinimum(
const std::vector<content::Manifest::Icon>& icons,
int minimum_icon_size_in_dp) {
return ManifestIconSelector::FindBestMatchingIcon(
- icons, GetPreferredIconSizeInDp(),
- minimum_icon_size_in_dp, &test_screen_);
+ icons, GetPreferredIconSizeInDp(), minimum_icon_size_in_dp);
}
GURL FindBestMatchingIcon(const std::vector<content::Manifest::Icon>& icons) {
« no previous file with comments | « chrome/browser/manifest/manifest_icon_selector.cc ('k') | chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698