| OLD | NEW | 
|---|
| 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 "chrome/browser/ui/cocoa/infobars/confirm_infobar_controller.h" | 5 #import "chrome/browser/ui/cocoa/infobars/confirm_infobar_controller.h" | 
| 6 | 6 | 
| 7 #include <utility> | 7 #include <utility> | 
| 8 | 8 | 
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" | 
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" | 
| 11 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" | 
| 12 #include "chrome/browser/infobars/infobar_service.h" | 12 #include "chrome/browser/infobars/infobar_service.h" | 
| 13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |  | 
| 14 #import "chrome/browser/ui/cocoa/infobars/infobar_cocoa.h" | 13 #import "chrome/browser/ui/cocoa/infobars/infobar_cocoa.h" | 
| 15 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" | 14 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" | 
| 16 #include "chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h" | 15 #include "chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h" | 
| 17 #include "chrome/browser/ui/cocoa/run_loop_testing.h" | 16 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" | 
|  | 17 #include "chrome/browser/ui/cocoa/test/run_loop_testing.h" | 
| 18 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" | 
| 19 #include "components/infobars/core/confirm_infobar_delegate.h" | 19 #include "components/infobars/core/confirm_infobar_delegate.h" | 
| 20 #import "content/public/browser/web_contents.h" | 20 #import "content/public/browser/web_contents.h" | 
| 21 #include "ipc/ipc_message.h" | 21 #include "ipc/ipc_message.h" | 
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" | 
| 23 #include "testing/platform_test.h" | 23 #include "testing/platform_test.h" | 
| 24 | 24 | 
| 25 using content::WebContents; | 25 using content::WebContents; | 
| 26 | 26 | 
| 27 @interface InfoBarController (ExposedForTesting) | 27 @interface InfoBarController (ExposedForTesting) | 
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 240   const CGFloat width = 20; | 240   const CGFloat width = 20; | 
| 241   NSRect newViewFrame = [[controller_ view] frame]; | 241   NSRect newViewFrame = [[controller_ view] frame]; | 
| 242   newViewFrame.size.width += width; | 242   newViewFrame.size.width += width; | 
| 243   [[controller_ view] setFrame:newViewFrame]; | 243   [[controller_ view] setFrame:newViewFrame]; | 
| 244 | 244 | 
| 245   NSRect newLabelFrame = [controller_ labelFrame]; | 245   NSRect newLabelFrame = [controller_ labelFrame]; | 
| 246   EXPECT_EQ(NSWidth(newLabelFrame), NSWidth(originalLabelFrame) + width); | 246   EXPECT_EQ(NSWidth(newLabelFrame), NSWidth(originalLabelFrame) + width); | 
| 247 } | 247 } | 
| 248 | 248 | 
| 249 }  // namespace | 249 }  // namespace | 
| OLD | NEW | 
|---|