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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/infobar_controller_unittest.mm

Issue 10532162: Rename IPC Sender and Listener in ppapi, content/public, and content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "chrome/browser/infobars/infobar_tab_helper.h" 10 #include "chrome/browser/infobars/infobar_tab_helper.h"
11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
12 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 12 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
13 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" 13 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h"
14 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" 14 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"
15 #include "chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h" 15 #include "chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h"
16 #include "chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.h" 16 #include "chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.h"
17 #include "chrome/browser/ui/cocoa/run_loop_testing.h" 17 #include "chrome/browser/ui/cocoa/run_loop_testing.h"
18 #include "chrome/browser/ui/tab_contents/tab_contents.h" 18 #include "chrome/browser/ui/tab_contents/tab_contents.h"
19 #import "content/public/browser/web_contents.h" 19 #import "content/public/browser/web_contents.h"
20 #include "ipc/ipc_message.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 #include "testing/platform_test.h" 22 #include "testing/platform_test.h"
22 23
23 using content::WebContents; 24 using content::WebContents;
24 25
25 @interface InfoBarController (ExposedForTesting) 26 @interface InfoBarController (ExposedForTesting)
26 - (NSString*)labelString; 27 - (NSString*)labelString;
27 - (NSRect)labelFrame; 28 - (NSRect)labelFrame;
28 @end 29 @end
29 30
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 const CGFloat width = 20; 330 const CGFloat width = 20;
330 NSRect newViewFrame = [[controller_ view] frame]; 331 NSRect newViewFrame = [[controller_ view] frame];
331 newViewFrame.size.width += width; 332 newViewFrame.size.width += width;
332 [[controller_ view] setFrame:newViewFrame]; 333 [[controller_ view] setFrame:newViewFrame];
333 334
334 NSRect newLabelFrame = [controller_ labelFrame]; 335 NSRect newLabelFrame = [controller_ labelFrame];
335 EXPECT_EQ(NSWidth(newLabelFrame), NSWidth(originalLabelFrame) + width); 336 EXPECT_EQ(NSWidth(newLabelFrame), NSWidth(originalLabelFrame) + width);
336 } 337 }
337 338
338 } // namespace 339 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/color_chooser_mac.mm ('k') | chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698