| 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/string_util.h" | 5 #include "base/string_util.h" |
| 6 #include "base/time.h" | |
| 7 #include "chrome/browser/bookmarks/bookmark_folder_tree_model.h" | 6 #include "chrome/browser/bookmarks/bookmark_folder_tree_model.h" |
| 8 #include "chrome/test/testing_profile.h" | 7 #include "chrome/test/testing_profile.h" |
| 9 #include "chrome/views/tree_view.h" | 8 #include "chrome/views/tree_view.h" |
| 10 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 11 |
| 13 // Base class for bookmark model tests. | 12 // Base class for bookmark model tests. |
| 14 // Initial state of the bookmark model is as follows: | 13 // Initial state of the bookmark model is as follows: |
| 15 // bb | 14 // bb |
| 16 // url1 | 15 // url1 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 VerifyAndClearObserverCounts(0, 0, 0, 1); | 209 VerifyAndClearObserverCounts(0, 0, 0, 1); |
| 211 | 210 |
| 212 // Make sure the resulting order matches. | 211 // Make sure the resulting order matches. |
| 213 FolderNode* other_folder_node = | 212 FolderNode* other_folder_node = |
| 214 model_->GetFolderNodeForBookmarkNode(bookmark_model()->other_node()); | 213 model_->GetFolderNodeForBookmarkNode(bookmark_model()->other_node()); |
| 215 ASSERT_EQ(3, other_folder_node->GetChildCount()); | 214 ASSERT_EQ(3, other_folder_node->GetChildCount()); |
| 216 EXPECT_TRUE(other_folder_node->GetChild(0)->GetTitle() == L"a1"); | 215 EXPECT_TRUE(other_folder_node->GetChild(0)->GetTitle() == L"a1"); |
| 217 EXPECT_TRUE(other_folder_node->GetChild(1)->GetTitle() == L"f2"); | 216 EXPECT_TRUE(other_folder_node->GetChild(1)->GetTitle() == L"f2"); |
| 218 EXPECT_TRUE(other_folder_node->GetChild(2)->GetTitle() == L"g1"); | 217 EXPECT_TRUE(other_folder_node->GetChild(2)->GetTitle() == L"g1"); |
| 219 } | 218 } |
| OLD | NEW |