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

Side by Side Diff: chrome/browser/gtk/bookmark_bar_gtk_unittest.cc

Issue 6260001: Cleanup: Remove unneeded chrome/browser/ui/browser.h usage.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/gtk/bookmark_bar_gtk.h" 5 #include "chrome/browser/gtk/bookmark_bar_gtk.h"
6 6
7 #include "base/task.h" 7 #include "base/task.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h" 9 #include "chrome/browser/bookmarks/bookmark_model.h"
10 #include "chrome/browser/browser_thread.h" 10 #include "chrome/browser/browser_thread.h"
11 #include "chrome/browser/gtk/tabstrip_origin_provider.h" 11 #include "chrome/browser/gtk/tabstrip_origin_provider.h"
12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/test/testing_profile.h" 12 #include "chrome/test/testing_profile.h"
14 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
15 14
16 // Dummy implementation that's good enough for the tests; we don't test 15 // Dummy implementation that's good enough for the tests; we don't test
17 // rendering here so all we need is a non-NULL object. 16 // rendering here so all we need is a non-NULL object.
18 class EmptyTabstripOriginProvider : public TabstripOriginProvider { 17 class EmptyTabstripOriginProvider : public TabstripOriginProvider {
19 public: 18 public:
20 virtual gfx::Point GetTabStripOriginForWidget(GtkWidget* widget) { 19 virtual gfx::Point GetTabStripOriginForWidget(GtkWidget* widget) {
21 return gfx::Point(0, 0); 20 return gfx::Point(0, 0);
22 } 21 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ASCIIToUTF16("other"), GURL("http://two.com")); 88 ASCIIToUTF16("other"), GURL("http://two.com"));
90 89
91 bookmark_bar_->Loaded(model); 90 bookmark_bar_->Loaded(model);
92 91
93 // We should expect two children to the bookmark bar's toolbar. 92 // We should expect two children to the bookmark bar's toolbar.
94 GList* children = gtk_container_get_children( 93 GList* children = gtk_container_get_children(
95 GTK_CONTAINER(bookmark_bar_->bookmark_toolbar_.get())); 94 GTK_CONTAINER(bookmark_bar_->bookmark_toolbar_.get()));
96 EXPECT_EQ(2U, g_list_length(children)); 95 EXPECT_EQ(2U, g_list_length(children));
97 g_list_free(children); 96 g_list_free(children);
98 } 97 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/geolocation_permission_context.cc ('k') | chrome/browser/gtk/options/content_filter_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698