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

Side by Side Diff: chrome/browser/ui/cocoa/cocoa_test_helper.h

Issue 5950003: Remove CrApplication dependency from base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_UI_COCOA_COCOA_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_COCOA_TEST_HELPER_H_
6 #define CHROME_BROWSER_UI_COCOA_COCOA_TEST_HELPER_H_ 6 #define CHROME_BROWSER_UI_COCOA_COCOA_TEST_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 #import "base/chrome_application_mac.h"
12 #include "base/debug_util.h" 11 #include "base/debug_util.h"
13 #include "base/mac_util.h" 12 #include "base/mac_util.h"
14 #include "base/path_service.h" 13 #include "base/path_service.h"
15 #import "base/mac/scoped_nsautorelease_pool.h" 14 #import "base/mac/scoped_nsautorelease_pool.h"
16 #import "base/scoped_nsobject.h" 15 #import "base/scoped_nsobject.h"
16 #import "chrome/common/chrome_application_mac.h"
17 #include "chrome/common/chrome_constants.h" 17 #include "chrome/common/chrome_constants.h"
18 #include "testing/platform_test.h" 18 #include "testing/platform_test.h"
19 19
20 // Background windows normally will not display things such as focus 20 // Background windows normally will not display things such as focus
21 // rings. This class allows -isKeyWindow to be manipulated to test 21 // rings. This class allows -isKeyWindow to be manipulated to test
22 // such things. 22 // such things.
23 @interface CocoaTestHelperWindow : NSWindow { 23 @interface CocoaTestHelperWindow : NSWindow {
24 @private 24 @private
25 BOOL pretendIsKeyWindow_; 25 BOOL pretendIsKeyWindow_;
26 } 26 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 #define EXPECT_NSRECT_EQ(expected, actual) \ 144 #define EXPECT_NSRECT_EQ(expected, actual) \
145 EXPECT_TRUE(CGFLOAT_EQ(expected.origin.x, actual.origin.x) && \ 145 EXPECT_TRUE(CGFLOAT_EQ(expected.origin.x, actual.origin.x) && \
146 CGFLOAT_EQ(expected.origin.y, actual.origin.y) && \ 146 CGFLOAT_EQ(expected.origin.y, actual.origin.y) && \
147 CGFLOAT_EQ(expected.size.width, actual.size.width) && \ 147 CGFLOAT_EQ(expected.size.width, actual.size.width) && \
148 CGFLOAT_EQ(expected.size.height, actual.size.height)) << \ 148 CGFLOAT_EQ(expected.size.height, actual.size.height)) << \
149 "Rects do not match: " << \ 149 "Rects do not match: " << \
150 [NSStringFromRect(expected) UTF8String] << \ 150 [NSStringFromRect(expected) UTF8String] << \
151 " != " << [NSStringFromRect(actual) UTF8String] 151 " != " << [NSStringFromRect(actual) UTF8String]
152 152
153 #endif // CHROME_BROWSER_UI_COCOA_COCOA_TEST_HELPER_H_ 153 #endif // CHROME_BROWSER_UI_COCOA_COCOA_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698