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

Side by Side Diff: chrome/browser/ui/cocoa/applescript/bookmark_applescript_utils_unittest.h

Issue 6258017: Mac: Never have a space between @property and ( (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: comments Created 9 years, 11 months 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
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_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/scoped_nsobject.h" 11 #include "base/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/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;
27 // Return the |TestingProfile*| which is used for testing. 27 // Return the |TestingProfile*| which is used for testing.
28 - (Profile*)defaultProfile; 28 - (Profile*)defaultProfile;
29 @end 29 @end
30 30
31 31
32 // Used to emulate an active running script, useful for testing purposes. 32 // Used to emulate an active running script, useful for testing purposes.
33 @interface FakeScriptCommand : NSScriptCommand { 33 @interface FakeScriptCommand : NSScriptCommand {
34 Method originalMethod_; 34 Method originalMethod_;
35 Method alternateMethod_; 35 Method alternateMethod_;
36 } 36 }
37 @end 37 @end
38 38
39 39
40 // The base class for all our bookmark releated unit tests. 40 // The base class for all our bookmark releated unit tests.
41 class BookmarkAppleScriptTest : public CocoaTest { 41 class BookmarkAppleScriptTest : public CocoaTest {
42 public: 42 public:
43 BookmarkAppleScriptTest(); 43 BookmarkAppleScriptTest();
44 private: 44 private:
45 BrowserTestHelper helper_; 45 BrowserTestHelper helper_;
46 scoped_nsobject<FakeAppDelegate> appDelegate_; 46 scoped_nsobject<FakeAppDelegate> appDelegate_;
47 protected: 47 protected:
48 scoped_nsobject<BookmarkFolderAppleScript> bookmarkBar_; 48 scoped_nsobject<BookmarkFolderAppleScript> bookmarkBar_;
49 BookmarkModel& model(); 49 BookmarkModel& model();
50 }; 50 };
51 51
52 #endif 52 #endif
53 // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_APPLESCRIPT_UTILS_UNITTEST_H_ 53 // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_BOOKMARK_APPLESCRIPT_UTILS_UNITTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/animatable_image.h ('k') | chrome/browser/ui/cocoa/applescript/element_applescript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698