blob: f771ccd68085e242f4632bd1175eec6c2b4bc947 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2010 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.
#include "base/scoped_nsobject.h"
#import "chrome/browser/cocoa/cocoa_test_helper.h"
#import "chrome/browser/cocoa/extensions/browser_actions_container_view.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
namespace {
const CGFloat kContainerHeight = 15.0;
class BrowserActionsContainerViewTest : public CocoaTest {
public:
virtual void SetUp() {
CocoaTest::SetUp();
view_.reset([[BrowserActionsContainerView alloc]
initWithFrame:NSMakeRect(0, 0, 0, kContainerHeight)]);
}
scoped_nsobject<BrowserActionsContainerView> view_;
};
TEST_F(BrowserActionsContainerViewTest, BasicTests) {
EXPECT_TRUE([view_ isResizable]);
EXPECT_TRUE([view_ canDragLeft]);
EXPECT_TRUE([view_ canDragRight]);
EXPECT_TRUE([view_ isHidden]);
}
} // namespace
|