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 #ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_APPLESCRIPT_UTILS_UNITTEST_
H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_APPLESCRIPT_UTILS_UNITTEST_
H_ |
6 #define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_APPLESCRIPT_UTILS_UNITTEST_
H_ | 6 #define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_APPLESCRIPT_UTILS_UNITTEST_
H_ |
7 | 7 |
8 #import <objc/objc-runtime.h> | 8 #import <objc/objc-runtime.h> |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 #include "base/memory/scoped_nsobject.h" | 11 #include "base/memory/scoped_nsobject.h" |
12 #import "chrome/browser/app_controller_mac.h" | 12 #import "chrome/browser/app_controller_mac.h" |
13 #import "chrome/browser/ui/cocoa/applescript/bookmark_folder_applescript.h" | 13 #import "chrome/browser/ui/cocoa/applescript/bookmark_folder_applescript.h" |
14 #include "chrome/browser/ui/cocoa/browser_test_helper.h" | 14 #include "chrome/browser/ui/cocoa/browser_test_helper.h" |
15 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 15 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
16 #include "chrome/test/model_test_utils.h" | 16 #include "chrome/test/base/model_test_utils.h" |
17 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
18 | 18 |
19 class BookmarkModel; | 19 class BookmarkModel; |
20 | 20 |
21 // The fake object that acts as our app's delegate, useful for testing purposes. | 21 // The fake object that acts as our app's delegate, useful for testing purposes. |
22 @interface FakeAppDelegate : AppController { | 22 @interface FakeAppDelegate : AppController { |
23 @public | 23 @public |
24 BrowserTestHelper* helper_; // weak. | 24 BrowserTestHelper* helper_; // weak. |
25 } | 25 } |
26 @property(nonatomic) BrowserTestHelper* helper; | 26 @property(nonatomic) BrowserTestHelper* helper; |
(...skipping 18 matching lines...) Expand all Loading... |
45 private: | 45 private: |
46 BrowserTestHelper helper_; | 46 BrowserTestHelper helper_; |
47 scoped_nsobject<FakeAppDelegate> appDelegate_; | 47 scoped_nsobject<FakeAppDelegate> appDelegate_; |
48 protected: | 48 protected: |
49 scoped_nsobject<BookmarkFolderAppleScript> bookmarkBar_; | 49 scoped_nsobject<BookmarkFolderAppleScript> bookmarkBar_; |
50 BookmarkModel& model(); | 50 BookmarkModel& model(); |
51 }; | 51 }; |
52 | 52 |
53 #endif | 53 #endif |
54 // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_APPLESCRIPT_UTILS_UNITTEST_H_ | 54 // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_APPLESCRIPT_UTILS_UNITTEST_H_ |
OLD | NEW |