| 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/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 Loading... |
| 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 | |
| OLD | NEW |