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

Unified Diff: chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm

Issue 1650483002: Refactor: Untangle Mac's ExclusiveAccessContext from BrowserWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename accessor 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/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
index 929d9a6dc86135f587818b773396f54bde96d589..7b7717b1bcc123ba4d155294a91e5a8fec1592e9 100644
--- a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
@@ -7,6 +7,7 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
+#include "chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h"
#include "chrome/browser/ui/cocoa/browser_window_controller.h"
#include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
@@ -109,17 +110,17 @@ TEST_F(ExclusiveAccessBubbleWindowControllerTest,
ASSERT_TRUE(browser()->window()->IsFullscreen());
}
- ExclusiveAccessBubbleWindowController* bubble =
- [bwc exclusiveAccessBubbleWindowController];
- EXPECT_TRUE(bubble);
+ ExclusiveAccessController* access_controller =
+ [bwc exclusiveAccessController];
+ EXPECT_TRUE(access_controller->cocoa_bubble());
{
content::WindowedNotificationObserver fullscreen_observer(
chrome::NOTIFICATION_FULLSCREEN_CHANGED,
content::NotificationService::AllSources());
- [bubble deny:nil];
+ [access_controller->cocoa_bubble() deny:nil];
fullscreen_observer.Wait();
}
- EXPECT_FALSE([bwc exclusiveAccessBubbleWindowController]);
+ EXPECT_FALSE(access_controller->cocoa_bubble());
EXPECT_FALSE(browser()->window()->IsFullscreen());
CloseBrowserWindow();
}

Powered by Google App Engine
This is Rietveld 408576698