OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/search_engines/template_url.h" | 5 #include "chrome/browser/search_engines/template_url.h" |
6 #include "chrome/browser/search_engines/template_url_service.h" | 6 #include "chrome/browser/search_engines/template_url_service.h" |
7 #include "chrome/browser/search_engines/template_url_service_factory.h" | 7 #include "chrome/browser/search_engines/template_url_service_factory.h" |
8 #include "chrome/browser/ui/views/first_run_bubble.h" | 8 #include "chrome/browser/ui/views/first_run_bubble.h" |
9 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "ui/views/test/views_test_base.h" | 11 #include "ui/views/test/views_test_base.h" |
| 12 #include "ui/views/widget/widget.h" |
12 #include "views/view.h" | 13 #include "views/view.h" |
13 #include "views/widget/widget.h" | |
14 | 14 |
15 class FirstRunBubbleTest : public views::ViewsTestBase { | 15 class FirstRunBubbleTest : public views::ViewsTestBase { |
16 public: | 16 public: |
17 FirstRunBubbleTest(); | 17 FirstRunBubbleTest(); |
18 virtual ~FirstRunBubbleTest(); | 18 virtual ~FirstRunBubbleTest(); |
19 | 19 |
20 // Overrides from views::ViewsTestBase: | 20 // Overrides from views::ViewsTestBase: |
21 virtual void SetUp() OVERRIDE; | 21 virtual void SetUp() OVERRIDE; |
22 | 22 |
23 protected: | 23 protected: |
(...skipping 20 matching lines...) Expand all Loading... |
44 TEST_F(FirstRunBubbleTest, CreateAndClose) { | 44 TEST_F(FirstRunBubbleTest, CreateAndClose) { |
45 FirstRunBubble* delegate = | 45 FirstRunBubble* delegate = |
46 FirstRunBubble::ShowBubble( | 46 FirstRunBubble::ShowBubble( |
47 profile(), | 47 profile(), |
48 NULL, | 48 NULL, |
49 views::BubbleBorder::TOP_LEFT, | 49 views::BubbleBorder::TOP_LEFT, |
50 FirstRun::MINIMAL_BUBBLE); | 50 FirstRun::MINIMAL_BUBBLE); |
51 EXPECT_TRUE(delegate != NULL); | 51 EXPECT_TRUE(delegate != NULL); |
52 delegate->GetWidget()->CloseNow(); | 52 delegate->GetWidget()->CloseNow(); |
53 } | 53 } |
OLD | NEW |