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

Side by Side Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller_unittest.mm

Issue 1543393002: Switch to standard integer types in chrome/browser/ui/cocoa/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_con troller.h" 5 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_con troller.h"
6 6
7 #include <stddef.h>
8
9 #include "base/macros.h"
7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
8 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh eet.h" 11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh eet.h"
9 #import "testing/gtest_mac.h" 12 #import "testing/gtest_mac.h"
10 13
11 namespace { 14 namespace {
12 15
13 const int kSystemSheetReturnCode = 77; 16 const int kSystemSheetReturnCode = 77;
14 17
15 } // namespace 18 } // namespace
16 19
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 [system_sheet setAlert:alert]; 306 [system_sheet setAlert:alert];
304 307
305 EXPECT_FALSE([[alert window] isVisible]); 308 EXPECT_FALSE([[alert window] isVisible]);
306 [controller_ showSheet:system_sheet forParentView:active_tab_view_]; 309 [controller_ showSheet:system_sheet forParentView:active_tab_view_];
307 EXPECT_TRUE([[alert window] isVisible]); 310 EXPECT_TRUE([[alert window] isVisible]);
308 311
309 [controller_ closeSheet:system_sheet]; 312 [controller_ closeSheet:system_sheet];
310 EXPECT_FALSE([[alert window] isVisible]); 313 EXPECT_FALSE([[alert window] isVisible]);
311 EXPECT_EQ(kSystemSheetReturnCode, [system_sheet returnCode]); 314 EXPECT_EQ(kSystemSheetReturnCode, [system_sheet returnCode]);
312 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698