summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/collected_cookies_mac_unittest.mm
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 13:05:48 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 13:05:48 +0000
commita503c97cdef81306da6906f117fed3285e032f0e (patch)
tree06939dea41c651133467b098af4dcbb5d49620bb /chrome/browser/cocoa/collected_cookies_mac_unittest.mm
parentaffa5904ccff332075eedfb2a10797dd1ca8b0f6 (diff)
downloadchromium_src-a503c97cdef81306da6906f117fed3285e032f0e.zip
chromium_src-a503c97cdef81306da6906f117fed3285e032f0e.tar.gz
chromium_src-a503c97cdef81306da6906f117fed3285e032f0e.tar.bz2
Reland r52486. Display a tab modal dialog of the allowed/blocked cookies.
BUG=45230 TEST=CollectedCookiesTest.* Review URL: http://codereview.chromium.org/3034007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/collected_cookies_mac_unittest.mm')
-rw-r--r--chrome/browser/cocoa/collected_cookies_mac_unittest.mm38
1 files changed, 38 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/collected_cookies_mac_unittest.mm b/chrome/browser/cocoa/collected_cookies_mac_unittest.mm
new file mode 100644
index 0000000..ff6f3c5
--- /dev/null
+++ b/chrome/browser/cocoa/collected_cookies_mac_unittest.mm
@@ -0,0 +1,38 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <Cocoa/Cocoa.h>
+
+#import "chrome/browser/cocoa/collected_cookies_mac.h"
+
+#include "base/ref_counted.h"
+#include "chrome/browser/renderer_host/site_instance.h"
+#include "chrome/browser/renderer_host/test/test_render_view_host.h"
+#include "chrome/browser/tab_contents/test_tab_contents.h"
+#include "chrome/browser/profile.h"
+
+namespace {
+
+class CollectedCookiesWindowControllerTest : public RenderViewHostTestHarness {
+};
+
+TEST_F(CollectedCookiesWindowControllerTest, Construction) {
+ ChromeThread ui_thread(ChromeThread::UI, MessageLoop::current());
+ // Create a test tab. SiteInstance will be deleted when tabContents is
+ // deleted.
+ SiteInstance* instance =
+ SiteInstance::CreateSiteInstance(profile_.get());
+ TestTabContents* tabContents = new TestTabContents(profile_.get(),
+ instance);
+ CollectedCookiesWindowController* controller =
+ [[CollectedCookiesWindowController alloc]
+ initWithTabContents:tabContents];
+
+ [controller release];
+
+ delete tabContents;
+}
+
+} // namespace
+