OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/debug/debugger.h" | 7 #include "base/debug/debugger.h" |
8 #include "base/scoped_nsobject.h" | 8 #include "base/scoped_nsobject.h" |
9 #include "chrome/app/chrome_dll_resource.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #import "chrome/browser/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/cocoa/browser_window_controller.h" |
11 #import "chrome/browser/cocoa/browser_frame_view.h" | 11 #import "chrome/browser/cocoa/browser_frame_view.h" |
12 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 12 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
13 #import "chrome/browser/cocoa/framed_browser_window.h" | 13 #import "chrome/browser/cocoa/framed_browser_window.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #import "testing/gtest_mac.h" | 15 #import "testing/gtest_mac.h" |
16 #include "testing/platform_test.h" | 16 #include "testing/platform_test.h" |
17 #import "third_party/ocmock/OCMock/OCMock.h" | 17 #import "third_party/ocmock/OCMock/OCMock.h" |
18 | 18 |
19 class FramedBrowserWindowTest : public CocoaTest { | 19 class FramedBrowserWindowTest : public CocoaTest { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 NSRect rect = [area rect]; | 175 NSRect rect = [area rect]; |
176 foundArea = NSPointInRect(point, rect); | 176 foundArea = NSPointInRect(point, rect); |
177 if (foundArea) { | 177 if (foundArea) { |
178 EXPECT_NSEQ(frameView, [area owner]); | 178 EXPECT_NSEQ(frameView, [area owner]); |
179 break; | 179 break; |
180 } | 180 } |
181 } | 181 } |
182 EXPECT_TRUE(foundArea); | 182 EXPECT_TRUE(foundArea); |
183 } | 183 } |
184 | 184 |
OLD | NEW |