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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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/bookmarks/bookmark_model.h" 6 #include "chrome/browser/bookmarks/bookmark_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 using base::Time;
15 using base::TimeDelta;
16
14 // Base class for bookmark editor tests. Creates a BookmarkModel and populates 17 // Base class for bookmark editor tests. Creates a BookmarkModel and populates
15 // it with test data. 18 // it with test data.
16 class BookmarkEditorViewTest : public testing::Test { 19 class BookmarkEditorViewTest : public testing::Test {
17 public: 20 public:
18 BookmarkEditorViewTest() : model_(NULL) { 21 BookmarkEditorViewTest() : model_(NULL) {
19 } 22 }
20 23
21 virtual void SetUp() { 24 virtual void SetUp() {
22 profile_.reset(new TestingProfile()); 25 profile_.reset(new TestingProfile());
23 profile_->set_has_history_service(true); 26 profile_->set_has_history_service(true);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 editor.ApplyEdits(editor.tree_model_->GetRoot()->GetChild(0)); 199 editor.ApplyEdits(editor.tree_model_->GetRoot()->GetChild(0));
197 200
198 BookmarkNode* bb_node = profile_->GetBookmarkModel()->GetBookmarkBarNode(); 201 BookmarkNode* bb_node = profile_->GetBookmarkModel()->GetBookmarkBarNode();
199 ASSERT_EQ(4, bb_node->GetChildCount()); 202 ASSERT_EQ(4, bb_node->GetChildCount());
200 203
201 BookmarkNode* new_node = bb_node->GetChild(3); 204 BookmarkNode* new_node = bb_node->GetChild(3);
202 205
203 EXPECT_EQ(L"new_a", new_node->GetTitle()); 206 EXPECT_EQ(L"new_a", new_node->GetTitle());
204 EXPECT_TRUE(GURL(base_path() + "a") == new_node->GetURL()); 207 EXPECT_TRUE(GURL(base_path() + "a") == new_node->GetURL());
205 } 208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698