OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/string_util.h" | 5 #include "base/string_util.h" |
6 #include "chrome/browser/bookmark_bar_model.h" | 6 #include "chrome/browser/bookmarks/bookmark_bar_model.h" |
7 #include "chrome/browser/profile.h" | 7 #include "chrome/browser/profile.h" |
8 #include "chrome/browser/views/bookmark_editor_view.h" | 8 #include "chrome/browser/views/bookmark_editor_view.h" |
9 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
10 #include "chrome/common/pref_service.h" | 10 #include "chrome/common/pref_service.h" |
11 #include "chrome/test/testing_profile.h" | 11 #include "chrome/test/testing_profile.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 // Base class for bookmark editor tests. Creates a BookmarkBarModel and | 14 // Base class for bookmark editor tests. Creates a BookmarkBarModel and |
15 // populates it with test data. | 15 // populates it with test data. |
16 class BookmarkEditorViewTest : public testing::Test { | 16 class BookmarkEditorViewTest : public testing::Test { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 ASSERT_EQ(L"F21", mf2->GetChild(0)->GetTitle()); | 181 ASSERT_EQ(L"F21", mf2->GetChild(0)->GetTitle()); |
182 // Then a. | 182 // Then a. |
183 ASSERT_EQ(L"a", mf2->GetChild(1)->GetTitle()); | 183 ASSERT_EQ(L"a", mf2->GetChild(1)->GetTitle()); |
184 | 184 |
185 // F21 should have one child, F211. | 185 // F21 should have one child, F211. |
186 BookmarkBarNode* mf21 = mf2->GetChild(0); | 186 BookmarkBarNode* mf21 = mf2->GetChild(0); |
187 ASSERT_EQ(1, mf21->GetChildCount()); | 187 ASSERT_EQ(1, mf21->GetChildCount()); |
188 ASSERT_EQ(L"F211", mf21->GetChild(0)->GetTitle()); | 188 ASSERT_EQ(L"F211", mf21->GetChild(0)->GetTitle()); |
189 } | 189 } |
190 | 190 |
OLD | NEW |