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

Side by Side Diff: chrome/browser/ui/constrained_window_tab_helper_unittest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 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 #include "chrome/browser/ui/constrained_window.h" 5 #include "chrome/browser/ui/constrained_window.h"
6 #include "chrome/browser/ui/constrained_window_tab_helper.h" 6 #include "chrome/browser/ui/constrained_window_tab_helper.h"
7 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 7 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
8 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" 8 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h"
9 #include "content/test/test_browser_thread.h" 9 #include "content/test/test_browser_thread.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using content::BrowserThread;
13
12 class ConstrainedWindowTabHelperUnit : public TabContentsWrapperTestHarness { 14 class ConstrainedWindowTabHelperUnit : public TabContentsWrapperTestHarness {
13 public: 15 public:
14 ConstrainedWindowTabHelperUnit() 16 ConstrainedWindowTabHelperUnit()
15 : TabContentsWrapperTestHarness(), 17 : TabContentsWrapperTestHarness(),
16 ui_thread_(BrowserThread::UI, &message_loop_) { 18 ui_thread_(BrowserThread::UI, &message_loop_) {
17 } 19 }
18 20
19 private: 21 private:
20 content::TestBrowserThread ui_thread_; 22 content::TestBrowserThread ui_thread_;
21 }; 23 };
(...skipping 24 matching lines...) Expand all
46 const int kWindowCount = 4; 48 const int kWindowCount = 4;
47 for (int i = 0; i < kWindowCount; i++) { 49 for (int i = 0; i < kWindowCount; i++) {
48 contents_wrapper()->constrained_window_tab_helper()->AddConstrainedDialog( 50 contents_wrapper()->constrained_window_tab_helper()->AddConstrainedDialog(
49 &window); 51 &window);
50 } 52 }
51 EXPECT_EQ(window.close_count, 0); 53 EXPECT_EQ(window.close_count, 0);
52 contents_wrapper()->constrained_window_tab_helper()-> 54 contents_wrapper()->constrained_window_tab_helper()->
53 CloseConstrainedWindows(); 55 CloseConstrainedWindows();
54 EXPECT_EQ(window.close_count, kWindowCount); 56 EXPECT_EQ(window.close_count, kWindowCount);
55 } 57 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabpose_window.mm ('k') | chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698