| OLD | NEW |
| 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 #import "chrome/browser/ui/cocoa/tabpose_window.h" | 5 #import "chrome/browser/ui/cocoa/tabpose_window.h" |
| 6 | 6 |
| 7 #import "chrome/browser/browser_window.h" | 7 #import "chrome/browser/browser_window.h" |
| 8 #include "chrome/browser/renderer_host/site_instance.h" | 8 #include "chrome/browser/renderer_host/site_instance.h" |
| 9 #include "chrome/browser/tab_contents/tab_contents.h" | 9 #include "chrome/browser/tab_contents/tab_contents.h" |
| 10 #include "chrome/browser/tab_contents_wrapper.h" | |
| 11 #include "chrome/browser/tabs/tab_strip_model.h" | 10 #include "chrome/browser/tabs/tab_strip_model.h" |
| 12 #import "chrome/browser/ui/cocoa/browser_test_helper.h" | 11 #import "chrome/browser/ui/cocoa/browser_test_helper.h" |
| 13 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 class TabposeWindowTest : public CocoaTest { | 16 class TabposeWindowTest : public CocoaTest { |
| 17 public: | 17 public: |
| 18 TabposeWindowTest() { | 18 TabposeWindowTest() { |
| 19 site_instance_ = | 19 site_instance_ = |
| 20 SiteInstance::CreateSiteInstance(browser_helper_.profile()); | 20 SiteInstance::CreateSiteInstance(browser_helper_.profile()); |
| 21 } | 21 } |
| 22 | 22 |
| 23 void AppendTabToStrip() { | 23 void AppendTabToStrip() { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 [window selectTileAtIndexWithoutAnimation:1]; | 110 [window selectTileAtIndexWithoutAnimation:1]; |
| 111 model->CloseTabContentsAt(0, TabStripModel::CLOSE_NONE); | 111 model->CloseTabContentsAt(0, TabStripModel::CLOSE_NONE); |
| 112 DCHECK_EQ([window thumbnailLayerCount], 1u); | 112 DCHECK_EQ([window thumbnailLayerCount], 1u); |
| 113 DCHECK_EQ([window selectedIndex], 0); | 113 DCHECK_EQ([window selectedIndex], 0); |
| 114 | 114 |
| 115 // Should release the window. | 115 // Should release the window. |
| 116 [window mouseDown:nil]; | 116 [window mouseDown:nil]; |
| 117 | 117 |
| 118 browser_helper_.CloseBrowserWindow(); | 118 browser_helper_.CloseBrowserWindow(); |
| 119 } | 119 } |
| OLD | NEW |