[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / info_bubble_window_unittest.mm
blob1851ecb39af6e59f65dfff28556ec5fce8a1b125
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
17                                               defer:NO];
18   EXPECT_TRUE([window canBecomeKeyWindow]);
19   EXPECT_FALSE([window canBecomeMainWindow]);
21   EXPECT_TRUE([window isExcludedFromWindowsMenu]);
22   [window close];