Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: chrome/browser/ui/views/first_run_bubble_unittest.cc

Issue 9016036: Implement the new first run bubble, clean up old bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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"
(...skipping 23 matching lines...) Expand all
35 35
36 void FirstRunBubbleTest::SetUp() { 36 void FirstRunBubbleTest::SetUp() {
37 ViewsTestBase::SetUp(); 37 ViewsTestBase::SetUp();
38 profile_.CreateTemplateURLService(); 38 profile_.CreateTemplateURLService();
39 TemplateURLService* turl_model = 39 TemplateURLService* turl_model =
40 TemplateURLServiceFactory::GetForProfile(&profile_); 40 TemplateURLServiceFactory::GetForProfile(&profile_);
41 turl_model->Load(); 41 turl_model->Load();
42 } 42 }
43 43
44 TEST_F(FirstRunBubbleTest, CreateAndClose) { 44 TEST_F(FirstRunBubbleTest, CreateAndClose) {
45 FirstRunBubble* delegate = 45 FirstRunBubble* delegate = FirstRunBubble::ShowBubble(profile(), NULL);
46 FirstRunBubble::ShowBubble(
47 profile(),
48 NULL,
49 views::BubbleBorder::TOP_LEFT,
50 FirstRun::MINIMAL_BUBBLE);
51 EXPECT_TRUE(delegate != NULL); 46 EXPECT_TRUE(delegate != NULL);
52 delegate->GetWidget()->CloseNow(); 47 delegate->GetWidget()->CloseNow();
53 } 48 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/first_run_bubble.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698