Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

collected_cookies_mac_unittest.mm

// 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


Generated by  Doxygen 1.6.0   Back to index