| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /* |
| 5 #include "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
| 6 #include "chrome/browser/ui/browser_window.h" | 7 #include "chrome/browser/ui/browser_window.h" |
| 7 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 8 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 9 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
| 9 #import "chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h" | 10 #import "chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h" |
| 10 #include "chrome/browser/ui/website_settings/permission_bubble_browser_test_util
.h" | 11 #include "chrome/browser/ui/website_settings/permission_bubble_browser_test_util
.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #import "testing/gtest_mac.h" | 13 #import "testing/gtest_mac.h" |
| 13 #import "ui/base/cocoa/fullscreen_window_manager.h" | 14 #import "ui/base/cocoa/fullscreen_window_manager.h" |
| 14 | 15 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 NSPoint withLocationBar = bubble.GetAnchorPoint(); | 119 NSPoint withLocationBar = bubble.GetAnchorPoint(); |
| 119 | 120 |
| 120 ON_CALL(bubble, HasLocationBar()).WillByDefault(testing::Return(false)); | 121 ON_CALL(bubble, HasLocationBar()).WillByDefault(testing::Return(false)); |
| 121 NSPoint withoutLocationBar = bubble.GetAnchorPoint(); | 122 NSPoint withoutLocationBar = bubble.GetAnchorPoint(); |
| 122 | 123 |
| 123 // The bubble should be in different places depending if the location bar is | 124 // The bubble should be in different places depending if the location bar is |
| 124 // available or not. | 125 // available or not. |
| 125 EXPECT_NSNE(withLocationBar, withoutLocationBar); | 126 EXPECT_NSNE(withLocationBar, withoutLocationBar); |
| 126 bubble.Hide(); | 127 bubble.Hide(); |
| 127 } | 128 } |
| 129 */ |
| OLD | NEW |