| OLD | NEW |
| 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h" | 5 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h" | 10 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h" |
| 11 #include "chrome/common/extensions/api/bookmarks.h" | 11 #include "chrome/common/extensions/api/bookmarks.h" |
| 12 #include "components/bookmarks/core/browser/bookmark_model.h" | 12 #include "components/bookmarks/browser/bookmark_model.h" |
| 13 #include "components/bookmarks/core/test/test_bookmark_client.h" | 13 #include "components/bookmarks/test/test_bookmark_client.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 namespace keys = bookmark_api_constants; | 18 namespace keys = bookmark_api_constants; |
| 19 using api::bookmarks::BookmarkTreeNode; | 19 using api::bookmarks::BookmarkTreeNode; |
| 20 | 20 |
| 21 namespace bookmark_api_helpers { | 21 namespace bookmark_api_helpers { |
| 22 | 22 |
| 23 class ExtensionBookmarksTest : public testing::Test { | 23 class ExtensionBookmarksTest : public testing::Test { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 true, // Recurse. | 75 true, // Recurse. |
| 76 true)); // Only folders. | 76 true)); // Only folders. |
| 77 ASSERT_EQ(2U, tree->children->size()); | 77 ASSERT_EQ(2U, tree->children->size()); |
| 78 linked_ptr<BookmarkTreeNode> inner_folder = tree->children->at(1); | 78 linked_ptr<BookmarkTreeNode> inner_folder = tree->children->at(1); |
| 79 ASSERT_TRUE(inner_folder.get()); | 79 ASSERT_TRUE(inner_folder.get()); |
| 80 ASSERT_EQ("inner folder 1", inner_folder->title); | 80 ASSERT_EQ("inner folder 1", inner_folder->title); |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace bookmark_api_helpers | 83 } // namespace bookmark_api_helpers |
| 84 } // namespace extensions | 84 } // namespace extensions |
| OLD | NEW |