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

Side by Side Diff: chrome/browser/ui/cocoa/validation_message_bubble_controller_unittest.mm

Issue 17627005: mac: Remove unused includes of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: builds Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/mac/scoped_nsobject.h"
8 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
9 #import "chrome/browser/ui/cocoa/validation_message_bubble_controller.h" 8 #import "chrome/browser/ui/cocoa/validation_message_bubble_controller.h"
10 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
11 10
12 namespace { 11 namespace {
13 12
14 static NSView* constructView(const char* main_text, const char* sub_text) { 13 static NSView* constructView(const char* main_text, const char* sub_text) {
15 return [ValidationMessageBubbleController 14 return [ValidationMessageBubbleController
16 constructContentView:UTF8ToUTF16(main_text) 15 constructContentView:UTF8ToUTF16(main_text)
17 subText:UTF8ToUTF16(sub_text)]; 16 subText:UTF8ToUTF16(sub_text)];
(...skipping 18 matching lines...) Expand all
36 NSRect shortMainLongSubFrame = [constructView("abc", 35 NSRect shortMainLongSubFrame = [constructView("abc",
37 "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod" 36 "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod"
38 " tempor incididunt ut labore et dolore magna aliqua.") frame]; 37 " tempor incididunt ut labore et dolore magna aliqua.") frame];
39 EXPECT_GT(NSWidth(shortMainLongSubFrame), NSWidth(shortMainMediumSubFrame)); 38 EXPECT_GT(NSWidth(shortMainLongSubFrame), NSWidth(shortMainMediumSubFrame));
40 EXPECT_LT(NSWidth(shortMainLongSubFrame), 500); 39 EXPECT_LT(NSWidth(shortMainLongSubFrame), 500);
41 EXPECT_GT(NSHeight(shortMainLongSubFrame), NSHeight(shortMainMediumSubFrame)); 40 EXPECT_GT(NSHeight(shortMainLongSubFrame), NSHeight(shortMainMediumSubFrame));
42 } 41 }
43 42
44 } 43 }
45 44
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/task_manager_mac_unittest.mm ('k') | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698