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

Side by Side Diff: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac_unittest.mm

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #import "chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h" 9 #import "chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h"
10 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" 10 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h"
11 #include "content/test/test_browser_thread.h"
12 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "content/public/test/test_browser_thread.h"
13 13
14 using content::BrowserThread; 14 using content::BrowserThread;
15 15
16 namespace { 16 namespace {
17 17
18 class CollectedCookiesWindowControllerTest 18 class CollectedCookiesWindowControllerTest
19 : public TabContentsWrapperTestHarness { 19 : public TabContentsWrapperTestHarness {
20 public: 20 public:
21 CollectedCookiesWindowControllerTest() 21 CollectedCookiesWindowControllerTest()
22 : ui_thread_(BrowserThread::UI, MessageLoopForUI::current()) { 22 : ui_thread_(BrowserThread::UI, MessageLoopForUI::current()) {
23 } 23 }
24 24
25 private: 25 private:
26 content::TestBrowserThread ui_thread_; 26 content::TestBrowserThread ui_thread_;
27 }; 27 };
28 28
29 TEST_F(CollectedCookiesWindowControllerTest, Construction) { 29 TEST_F(CollectedCookiesWindowControllerTest, Construction) {
30 CollectedCookiesWindowController* controller = 30 CollectedCookiesWindowController* controller =
31 [[CollectedCookiesWindowController alloc] 31 [[CollectedCookiesWindowController alloc]
32 initWithTabContentsWrapper:contents_wrapper()]; 32 initWithTabContentsWrapper:contents_wrapper()];
33 33
34 [controller release]; 34 [controller release];
35 } 35 }
36 36
37 } // namespace 37 } // namespace
38 38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698