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

Side by Side Diff: chrome/browser/ui/cocoa/tabpose_window_unittest.mm

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
« no previous file with comments | « chrome/browser/ui/cocoa/tabpose_window.mm ('k') | chrome/browser/ui/cocoa/view_id_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabpose_window.mm ('k') | chrome/browser/ui/cocoa/view_id_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698