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

Side by Side Diff: chrome/browser/ui/gtk/bookmark_editor_gtk_unittest.cc

Issue 6335001: Cleanup: Remove unneeded chrome/browser/prefs/pref_service.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/bookmarks/bookmark_model.h" 11 #include "chrome/browser/bookmarks/bookmark_model.h"
12 #include "chrome/browser/browser_thread.h" 12 #include "chrome/browser/browser_thread.h"
13 #include "chrome/browser/gtk/bookmark_editor_gtk.h" 13 #include "chrome/browser/gtk/bookmark_editor_gtk.h"
14 #include "chrome/browser/gtk/bookmark_tree_model.h" 14 #include "chrome/browser/gtk/bookmark_tree_model.h"
15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/test/testing_profile.h" 15 #include "chrome/test/testing_profile.h"
18 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
19 17
20 using base::Time; 18 using base::Time;
21 using base::TimeDelta; 19 using base::TimeDelta;
22 using bookmark_utils::GetTitleFromTreeIter; 20 using bookmark_utils::GetTitleFromTreeIter;
23 21
24 // Base class for bookmark editor tests. This class is a copy from 22 // Base class for bookmark editor tests. This class is a copy from
25 // bookmark_editor_view_unittest.cc, and all the tests in this file are 23 // bookmark_editor_view_unittest.cc, and all the tests in this file are
26 // GTK-ifications of the corresponding views tests. Testing here is really 24 // GTK-ifications of the corresponding views tests. Testing here is really
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 gtk_entry_set_text(GTK_ENTRY(editor.name_entry_), "new_a"); 317 gtk_entry_set_text(GTK_ENTRY(editor.name_entry_), "new_a");
320 318
321 editor.ApplyEdits(); 319 editor.ApplyEdits();
322 320
323 const BookmarkNode* other_node = profile_->GetBookmarkModel()->other_node(); 321 const BookmarkNode* other_node = profile_->GetBookmarkModel()->other_node();
324 ASSERT_EQ(2, other_node->GetChildCount()); 322 ASSERT_EQ(2, other_node->GetChildCount());
325 323
326 const BookmarkNode* new_node = other_node->GetChild(0); 324 const BookmarkNode* new_node = other_node->GetChild(0);
327 EXPECT_EQ(ASCIIToUTF16("new_a"), new_node->GetTitle()); 325 EXPECT_EQ(ASCIIToUTF16("new_a"), new_node->GetTitle());
328 } 326 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm ('k') | chrome/browser/ui/views/bookmark_context_menu_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698