gpu: Tweak Android WebGL test expectations
[chromium-blink-merge.git] / ui / app_list / cocoa / blue_label_button_unittest.mm
blob8704b64ef337b0bd56543ca0ed6780b0ac4cb269
1 // Copyright 2013 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 #import "ui/app_list/cocoa/blue_label_button.h"
7 #include "base/mac/scoped_nsobject.h"
8 #import "testing/gtest_mac.h"
9 #import "ui/base/test/ui_cocoa_test_helper.h"
11 namespace app_list {
12 namespace test {
14 class BlueLabelButtonTest : public ui::CocoaTest {
15  public:
16   BlueLabelButtonTest() {}
18   // ui::CocoaTest override:
19   virtual void SetUp() OVERRIDE;
21  protected:
22   base::scoped_nsobject<BlueLabelButton> blue_label_button_;
24  private:
25   DISALLOW_COPY_AND_ASSIGN(BlueLabelButtonTest);
28 void BlueLabelButtonTest::SetUp() {
29   blue_label_button_.reset([[BlueLabelButton alloc] initWithFrame:NSZeroRect]);
30   [blue_label_button_ setTitle:@"Test Title"];
31   [blue_label_button_ sizeToFit];
32   ui::CocoaTest::SetUp();
33   [[test_window() contentView] addSubview:blue_label_button_];
36 TEST_VIEW(BlueLabelButtonTest, blue_label_button_);
38 }  // namespace test
39 }  // namespace app_list