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

Side by Side Diff: chrome/browser/bookmarks/bookmark_drag_data_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
Property Changes:
Added: svn:mergeinfo
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/scoped_ptr.h" 5 #include "base/scoped_ptr.h"
6 #include "chrome/browser/bookmark_drag_data.h" 6 #include "chrome/browser/bookmarks/bookmark_bar_model.h"
7 #include "chrome/browser/bookmark_bar_model.h" 7 #include "chrome/browser/bookmarks/bookmark_drag_data.h"
8 #include "chrome/common/os_exchange_data.h" 8 #include "chrome/common/os_exchange_data.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 typedef testing::Test BookmarkDragDataTest; 12 typedef testing::Test BookmarkDragDataTest;
13 13
14 TEST_F(BookmarkDragDataTest, InitialState) { 14 TEST_F(BookmarkDragDataTest, InitialState) {
15 BookmarkDragData data; 15 BookmarkDragData data;
16 EXPECT_FALSE(data.is_valid); 16 EXPECT_FALSE(data.is_valid);
17 } 17 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 EXPECT_EQ(1, read_data.children.size()); 111 EXPECT_EQ(1, read_data.children.size());
112 EXPECT_TRUE(read_data.children[0].is_valid); 112 EXPECT_TRUE(read_data.children[0].is_valid);
113 EXPECT_TRUE(read_data.children[0].is_url); 113 EXPECT_TRUE(read_data.children[0].is_url);
114 EXPECT_EQ(title, read_data.children[0].title); 114 EXPECT_EQ(title, read_data.children[0].title);
115 EXPECT_TRUE(url == read_data.children[0].url); 115 EXPECT_TRUE(url == read_data.children[0].url);
116 EXPECT_TRUE(read_data.children[0].is_url); 116 EXPECT_TRUE(read_data.children[0].is_url);
117 117
118 BookmarkBarNode* r_group = read_data.GetNode(&model); 118 BookmarkBarNode* r_group = read_data.GetNode(&model);
119 EXPECT_TRUE(group == r_group); 119 EXPECT_TRUE(group == r_group);
120 } 120 }
121
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_drag_data.cc ('k') | chrome/browser/bookmarks/bookmark_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698