| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #import "chrome/browser/ui/browser_window.h" | 9 #import "chrome/browser/ui/browser_window.h" |
| 10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
| 11 #import "chrome/browser/ui/cocoa/new_tab_button.h" | 11 #import "chrome/browser/ui/cocoa/new_tab_button.h" |
| 12 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" | 12 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" |
| 13 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" | 13 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
| 14 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" | 14 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" |
| 15 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" | 15 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" |
| 16 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 16 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 17 #include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h" | 17 #include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h" |
| 18 #include "content/public/browser/site_instance.h" | 18 #include "content/public/browser/site_instance.h" |
| 19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
| 20 #include "ipc/ipc_message.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "testing/platform_test.h" | 22 #include "testing/platform_test.h" |
| 22 | 23 |
| 23 using content::SiteInstance; | 24 using content::SiteInstance; |
| 24 using content::WebContents; | 25 using content::WebContents; |
| 25 | 26 |
| 26 @interface TestTabStripControllerDelegate | 27 @interface TestTabStripControllerDelegate |
| 27 : NSObject<TabStripControllerDelegate> { | 28 : NSObject<TabStripControllerDelegate> { |
| 28 } | 29 } |
| 29 @end | 30 @end |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 224 |
| 224 [controller_.get() mouseMoved:event]; | 225 [controller_.get() mouseMoved:event]; |
| 225 EXPECT_STREQ("Tab2", | 226 EXPECT_STREQ("Tab2", |
| 226 [[controller_ view:nil | 227 [[controller_ view:nil |
| 227 stringForToolTip:nil | 228 stringForToolTip:nil |
| 228 point:NSMakePoint(0,0) | 229 point:NSMakePoint(0,0) |
| 229 userData:nil] cStringUsingEncoding:NSASCIIStringEncoding]); | 230 userData:nil] cStringUsingEncoding:NSASCIIStringEncoding]); |
| 230 } | 231 } |
| 231 | 232 |
| 232 } // namespace | 233 } // namespace |
| OLD | NEW |