| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |