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

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

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/bookmarks/bookmark_model.h"
7 #include "chrome/browser/browser.h" 8 #include "chrome/browser/browser.h"
8 #include "chrome/browser/chrome_thread.h" 9 #include "chrome/browser/chrome_thread.h"
9 #include "chrome/browser/gtk/tabstrip_origin_provider.h" 10 #include "chrome/browser/gtk/tabstrip_origin_provider.h"
10 #include "base/task.h" 11 #include "base/task.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 #include "chrome/test/testing_profile.h" 13 #include "chrome/test/testing_profile.h"
13 14
14 // 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
15 // rendering here so all we need is a non-NULL object. 16 // rendering here so all we need is a non-NULL object.
16 class EmptyTabstripOriginProvider : public TabstripOriginProvider { 17 class EmptyTabstripOriginProvider : public TabstripOriginProvider {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 L"other", GURL("http://two.com")); 75 L"other", GURL("http://two.com"));
75 76
76 bookmark_bar_->Loaded(model); 77 bookmark_bar_->Loaded(model);
77 78
78 // We should expect two children to the bookmark bar's toolbar. 79 // We should expect two children to the bookmark bar's toolbar.
79 GList* children = gtk_container_get_children( 80 GList* children = gtk_container_get_children(
80 GTK_CONTAINER(bookmark_bar_->bookmark_toolbar_.get())); 81 GTK_CONTAINER(bookmark_bar_->bookmark_toolbar_.get()));
81 EXPECT_EQ(2U, g_list_length(children)); 82 EXPECT_EQ(2U, g_list_length(children));
82 g_list_free(children); 83 g_list_free(children);
83 } 84 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/geolocation_settings_state_unittest.cc ('k') | chrome/browser/gtk/gtk_theme_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698