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

Side by Side Diff: chrome/browser/views/bookmark_editor_view_unittest.cc

Issue 1868: Moves bookmark related classes into bookmarks directory. There are no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_editor_view.h ('k') | chrome/browser/views/toolbar_star_toggle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698