OLD | NEW |
1 // Copyright (c) 2010 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/scoped_nsobject.h" | 8 #include "base/scoped_nsobject.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h" | 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h" |
11 #include "chrome/browser/ui/cocoa/browser_test_helper.h" | 11 #include "chrome/browser/ui/cocoa/browser_test_helper.h" |
12 #include "chrome/browser/ui/cocoa/browser_window_controller.h" | 12 #include "chrome/browser/ui/cocoa/browser_window_controller.h" |
13 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 13 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
14 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 14 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
15 #include "chrome/common/notification_service.h" | 15 #include "content/common/notification_service.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #import "testing/gtest_mac.h" | 17 #import "testing/gtest_mac.h" |
18 #include "testing/platform_test.h" | 18 #include "testing/platform_test.h" |
19 | 19 |
20 // Watch for bookmark pulse notifications so we can confirm they were sent. | 20 // Watch for bookmark pulse notifications so we can confirm they were sent. |
21 @interface BookmarkPulseObserver : NSObject { | 21 @interface BookmarkPulseObserver : NSObject { |
22 int notifications_; | 22 int notifications_; |
23 } | 23 } |
24 @property (assign, nonatomic) int notifications; | 24 @property (assign, nonatomic) int notifications; |
25 @end | 25 @end |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 // Normally this would be sent up the responder tree correctly, but since | 481 // Normally this would be sent up the responder tree correctly, but since |
482 // tests run in the background, key window and main window are never set on | 482 // tests run in the background, key window and main window are never set on |
483 // NSApplication. Adding it to NSApplication directly removes the need for | 483 // NSApplication. Adding it to NSApplication directly removes the need for |
484 // worrying about what the current window with focus is. | 484 // worrying about what the current window with focus is. |
485 - (void)editBookmarkNode:(id)sender { | 485 - (void)editBookmarkNode:(id)sender { |
486 EXPECT_TRUE([sender respondsToSelector:@selector(node)]); | 486 EXPECT_TRUE([sender respondsToSelector:@selector(node)]); |
487 BookmarkBubbleControllerTest::edits_++; | 487 BookmarkBubbleControllerTest::edits_++; |
488 } | 488 } |
489 | 489 |
490 @end | 490 @end |
OLD | NEW |