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

Unified Diff: chrome/browser/ui/zoom/zoom_controller_unittest.cc

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments; patch for landing. Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller_browsertest.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/zoom/zoom_controller_unittest.cc
diff --git a/chrome/browser/ui/zoom/zoom_controller_unittest.cc b/chrome/browser/ui/zoom/zoom_controller_unittest.cc
index 1d468f974fd6ce6a3ff2ec5b334dacffb65c03a4..2db242f6e9a7b1021d65da4f03c6f28d91f9f6de 100644
--- a/chrome/browser/ui/zoom/zoom_controller_unittest.cc
+++ b/chrome/browser/ui/zoom/zoom_controller_unittest.cc
@@ -70,25 +70,6 @@ TEST_F(ZoomControllerTest, DidNavigateMainFrame) {
content::FrameNavigateParams());
}
-TEST_F(ZoomControllerTest, Observe) {
- double new_zoom_level = 110.0;
- // When the event is initiated from HostZoomMap, the old zoom level is not
- // available.
- ZoomController::ZoomChangedEventData zoom_change_data(
- web_contents(),
- new_zoom_level,
- new_zoom_level,
- ZoomController::ZOOM_MODE_DEFAULT,
- false);
- EXPECT_CALL(zoom_observer_, OnZoomChanged(zoom_change_data)).Times(1);
-
- content::HostZoomMap* host_zoom_map =
- content::HostZoomMap::GetDefaultForBrowserContext(
- web_contents()->GetBrowserContext());
-
- host_zoom_map->SetZoomLevelForHost(std::string(), new_zoom_level);
-}
-
TEST_F(ZoomControllerTest, Observe_ZoomController) {
double old_zoom_level = zoom_controller_->GetZoomLevel();
double new_zoom_level = 110.0;
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller_browsertest.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698