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
3 // found in the LICENSE file.
5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
7 #include "chrome/browser/ui/cocoa/info_bubble_window.h"
9 class InfoBubbleWindowTest : public CocoaTest {
12 TEST_F(InfoBubbleWindowTest, Basics) {
13 InfoBubbleWindow* window =
14 [[InfoBubbleWindow alloc] initWithContentRect:NSMakeRect(0, 0, 10, 10)
15 styleMask:NSBorderlessWindowMask
16 backing:NSBackingStoreBuffered
18 EXPECT_TRUE([window canBecomeKeyWindow]);
19 EXPECT_FALSE([window canBecomeMainWindow]);
21 EXPECT_TRUE([window isExcludedFromWindowsMenu]);