OLD | NEW |
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 #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/browser/site_instance.h" | 11 #include "content/browser/site_instance.h" |
12 #include "content/browser/tab_contents/test_tab_contents.h" | 12 #include "content/browser/tab_contents/test_tab_contents.h" |
13 #include "content/test/test_browser_thread.h" | 13 #include "content/test/test_browser_thread.h" |
14 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
15 | 15 |
| 16 using content::BrowserThread; |
| 17 |
16 namespace { | 18 namespace { |
17 | 19 |
18 class CollectedCookiesWindowControllerTest | 20 class CollectedCookiesWindowControllerTest |
19 : public TabContentsWrapperTestHarness { | 21 : public TabContentsWrapperTestHarness { |
20 public: | 22 public: |
21 CollectedCookiesWindowControllerTest() | 23 CollectedCookiesWindowControllerTest() |
22 : ui_thread_(BrowserThread::UI, MessageLoopForUI::current()) { | 24 : ui_thread_(BrowserThread::UI, MessageLoopForUI::current()) { |
23 } | 25 } |
24 | 26 |
25 private: | 27 private: |
26 content::TestBrowserThread ui_thread_; | 28 content::TestBrowserThread ui_thread_; |
27 }; | 29 }; |
28 | 30 |
29 TEST_F(CollectedCookiesWindowControllerTest, Construction) { | 31 TEST_F(CollectedCookiesWindowControllerTest, Construction) { |
30 CollectedCookiesWindowController* controller = | 32 CollectedCookiesWindowController* controller = |
31 [[CollectedCookiesWindowController alloc] | 33 [[CollectedCookiesWindowController alloc] |
32 initWithTabContentsWrapper:contents_wrapper()]; | 34 initWithTabContentsWrapper:contents_wrapper()]; |
33 | 35 |
34 [controller release]; | 36 [controller release]; |
35 } | 37 } |
36 | 38 |
37 } // namespace | 39 } // namespace |
38 | 40 |
OLD | NEW |