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

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

Issue 24120005: Cleanup and IWYU-ify CocoaProfileTest and related tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include order Created 7 years, 3 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) 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 "chrome/browser/ui/cocoa/tabpose_window.h" 5 #import "chrome/browser/ui/cocoa/tabpose_window.h"
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "chrome/browser/ui/browser_window.h" 8 #include "chrome/browser/ui/browser_window.h"
9 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 9 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
11 #include "chrome/test/base/testing_profile.h"
11 #include "content/public/browser/site_instance.h" 12 #include "content/public/browser/site_instance.h"
12 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 using content::SiteInstance; 16 using content::SiteInstance;
16 17
17 class TabposeWindowTest : public CocoaProfileTest { 18 class TabposeWindowTest : public CocoaProfileTest {
18 public: 19 public:
19 virtual void SetUp() { 20 virtual void SetUp() {
20 CocoaProfileTest::SetUp(); 21 CocoaProfileTest::SetUp();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 DCHECK_EQ([window selectedIndex], 0); 117 DCHECK_EQ([window selectedIndex], 0);
117 118
118 [window selectTileAtIndexWithoutAnimation:1]; 119 [window selectTileAtIndexWithoutAnimation:1];
119 model->CloseWebContentsAt(0, TabStripModel::CLOSE_NONE); 120 model->CloseWebContentsAt(0, TabStripModel::CLOSE_NONE);
120 DCHECK_EQ([window thumbnailLayerCount], 1u); 121 DCHECK_EQ([window thumbnailLayerCount], 1u);
121 DCHECK_EQ([window selectedIndex], 0); 122 DCHECK_EQ([window selectedIndex], 0);
122 123
123 // Should release the window. 124 // Should release the window.
124 [window mouseDown:nil]; 125 [window mouseDown:nil];
125 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698