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

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

Issue 12039058: content: convert zoom notifications to observer usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: callbacks Created 7 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/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 cc5be54baac2a7ff5e1c83143e8901c4e9beae37..f96cfb7bb98a3cd16a023bac6b4dff1a15286681 100644
--- a/chrome/browser/ui/zoom/zoom_controller_unittest.cc
+++ b/chrome/browser/ui/zoom/zoom_controller_unittest.cc
@@ -14,9 +14,6 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/host_zoom_map.h"
#include "content/public/browser/navigation_details.h"
-#include "content/public/browser/notification_details.h"
-#include "content/public/browser/notification_source.h"
-#include "content/public/browser/notification_types.h"
#include "content/public/common/frame_navigate_params.h"
#include "content/public/test/test_browser_thread.h"
#include "content/public/test/test_utils.h"
@@ -71,11 +68,5 @@ TEST_F(ZoomControllerTest, Observe) {
content::HostZoomMap::GetForBrowserContext(
web_contents()->GetBrowserContext());
- content::WindowedNotificationObserver notification_observer(
- content::NOTIFICATION_ZOOM_LEVEL_CHANGED,
- content::NotificationService::AllSources());
-
host_zoom_map->SetZoomLevel(std::string(), 110.0f);
-
- notification_observer.Wait();
jam 2013/01/30 17:50:44 can you update the test to verify that callbacks a
Paweł Hajdan Jr. 2013/01/31 16:02:15 It already does - see EXPECT_CALL above. The call
}

Powered by Google App Engine
This is Rietveld 408576698