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

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

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 years, 9 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) 2011 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/browser/tab_contents/test_tab_contents.h"
12 #include "content/test/test_browser_thread.h" 11 #include "content/test/test_browser_thread.h"
13 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
14 13
15 using content::BrowserThread; 14 using content::BrowserThread;
16 15
17 namespace { 16 namespace {
18 17
19 class CollectedCookiesWindowControllerTest 18 class CollectedCookiesWindowControllerTest
20 : public TabContentsWrapperTestHarness { 19 : public TabContentsWrapperTestHarness {
21 public: 20 public:
22 CollectedCookiesWindowControllerTest() 21 CollectedCookiesWindowControllerTest()
23 : ui_thread_(BrowserThread::UI, MessageLoopForUI::current()) { 22 : ui_thread_(BrowserThread::UI, MessageLoopForUI::current()) {
24 } 23 }
25 24
26 private: 25 private:
27 content::TestBrowserThread ui_thread_; 26 content::TestBrowserThread ui_thread_;
28 }; 27 };
29 28
30 TEST_F(CollectedCookiesWindowControllerTest, Construction) { 29 TEST_F(CollectedCookiesWindowControllerTest, Construction) {
31 CollectedCookiesWindowController* controller = 30 CollectedCookiesWindowController* controller =
32 [[CollectedCookiesWindowController alloc] 31 [[CollectedCookiesWindowController alloc]
33 initWithTabContentsWrapper:contents_wrapper()]; 32 initWithTabContentsWrapper:contents_wrapper()];
34 33
35 [controller release]; 34 [controller release];
36 } 35 }
37 36
38 } // namespace 37 } // namespace
39 38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698