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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view_browsertest_mac.mm

Issue 2375903002: Emit OnNativeWidgetDestroying() before clearing the NSWindowDelegate. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | ui/views/cocoa/bridged_native_widget.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import <Cocoa/Cocoa.h>
6
7 #include "base/macros.h"
8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_tabstrip.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
11 #include "chrome/browser/ui/views/frame/browser_view.h"
12 #include "chrome/test/base/in_process_browser_test.h"
13
14 using BrowserViewTestMac = InProcessBrowserTest;
15
16 IN_PROC_BROWSER_TEST_F(BrowserViewTestMac, CloseWithTabsStartWithActive) {
17 chrome::AddTabAt(browser(), GURL(), -1, true);
18 chrome::AddTabAt(browser(), GURL(), -1, true);
19 browser()->tab_strip_model()->ActivateTabAt(0, true);
20 NSWindow* window = BrowserView::GetBrowserViewForBrowser(browser())
21 ->GetWidget()->GetNativeWindow();
22 [window close];
23 }
tapted 2016/10/05 08:38:18 this isn't the right place for a test, and there a
OLDNEW
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | ui/views/cocoa/bridged_native_widget.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698