| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/json/json_value_serializer.h" | 7 #include "base/json/json_file_value_serializer.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/bookmarks/bookmark_codec.h" | 13 #include "chrome/browser/bookmarks/bookmark_codec.h" |
| 14 #include "chrome/browser/bookmarks/bookmark_model.h" | 14 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 15 #include "chrome/browser/bookmarks/bookmark_model_test_utils.h" | 15 #include "chrome/browser/bookmarks/bookmark_model_test_utils.h" |
| 16 #include "chrome/browser/bookmarks/bookmark_utils.h" | 16 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 EXPECT_EQ(BookmarkNode::FOLDER, child->type()); | 329 EXPECT_EQ(BookmarkNode::FOLDER, child->type()); |
| 330 EXPECT_EQ(ASCIIToUTF16("Folder B"), child->GetTitle()); | 330 EXPECT_EQ(ASCIIToUTF16("Folder B"), child->GetTitle()); |
| 331 ASSERT_EQ(1, child->child_count()); | 331 ASSERT_EQ(1, child->child_count()); |
| 332 | 332 |
| 333 child = child->GetChild(0); | 333 child = child->GetChild(0); |
| 334 EXPECT_EQ(BookmarkNode::URL, child->type()); | 334 EXPECT_EQ(BookmarkNode::URL, child->type()); |
| 335 EXPECT_EQ(ASCIIToUTF16("Get started with Google Chrome"), child->GetTitle()); | 335 EXPECT_EQ(ASCIIToUTF16("Get started with Google Chrome"), child->GetTitle()); |
| 336 | 336 |
| 337 ASSERT_TRUE(decoded_model.mobile_node() != NULL); | 337 ASSERT_TRUE(decoded_model.mobile_node() != NULL); |
| 338 } | 338 } |
| OLD | NEW |