OLD | NEW |
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 |
OLD | NEW |