| Index: chrome/browser/cocoa/toolbar_view_unittest.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/toolbar_view_unittest.mm (revision 23408)
|
| +++ chrome/browser/cocoa/toolbar_view_unittest.mm (working copy)
|
| @@ -2,4 +2,24 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// This file is intentionally empty; there is no code in ToolbarView to test.
|
| +#include "base/scoped_nsobject.h"
|
| +#import "chrome/browser/cocoa/cocoa_test_helper.h"
|
| +#import "chrome/browser/cocoa/toolbar_view.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace {
|
| +
|
| +class ToolbarViewTest : public testing::Test {
|
| + public:
|
| + CocoaTestHelper cocoa_helper_;
|
| + scoped_nsobject<ToolbarView> view_;
|
| +};
|
| +
|
| +// This class only needs to do one thing: prevent mouse down events from moving
|
| +// the parent window around.
|
| +TEST_F(ToolbarViewTest, CanDragWindow) {
|
| + view_.reset([[ToolbarView alloc] init]);
|
| + EXPECT_FALSE([view_.get() mouseDownCanMoveWindow]);
|
| +}
|
| +
|
| +} // namespace
|
|
|