| 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 "components/bookmarks/core/browser/bookmark_model.h" | 5 #include "components/bookmarks/browser/bookmark_model.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/strings/string_split.h" | 18 #include "base/strings/string_split.h" |
| 19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 22 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 23 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
| 24 #include "components/bookmarks/core/browser/bookmark_model_observer.h" | 24 #include "components/bookmarks/browser/bookmark_model_observer.h" |
| 25 #include "components/bookmarks/core/browser/bookmark_utils.h" | 25 #include "components/bookmarks/browser/bookmark_utils.h" |
| 26 #include "components/bookmarks/core/test/bookmark_test_helpers.h" | 26 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| 27 #include "components/bookmarks/core/test/test_bookmark_client.h" | 27 #include "components/bookmarks/test/test_bookmark_client.h" |
| 28 #include "content/public/test/test_browser_thread_bundle.h" | 28 #include "content/public/test/test_browser_thread_bundle.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 #include "ui/base/models/tree_node_iterator.h" | 30 #include "ui/base/models/tree_node_iterator.h" |
| 31 #include "ui/base/models/tree_node_model.h" | 31 #include "ui/base/models/tree_node_model.h" |
| 32 #include "url/gurl.h" | 32 #include "url/gurl.h" |
| 33 | 33 |
| 34 using base::ASCIIToUTF16; | 34 using base::ASCIIToUTF16; |
| 35 using base::Time; | 35 using base::Time; |
| 36 using base::TimeDelta; | 36 using base::TimeDelta; |
| 37 | 37 |
| (...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 EXPECT_TRUE(node.DeleteMetaInfo("key2.subkey2.leaf")); | 1148 EXPECT_TRUE(node.DeleteMetaInfo("key2.subkey2.leaf")); |
| 1149 EXPECT_FALSE(node.DeleteMetaInfo("key3")); | 1149 EXPECT_FALSE(node.DeleteMetaInfo("key3")); |
| 1150 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); | 1150 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); |
| 1151 EXPECT_FALSE(node.GetMetaInfo("key2.subkey1", &out_value)); | 1151 EXPECT_FALSE(node.GetMetaInfo("key2.subkey1", &out_value)); |
| 1152 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2", &out_value)); | 1152 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2", &out_value)); |
| 1153 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2.leaf", &out_value)); | 1153 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2.leaf", &out_value)); |
| 1154 EXPECT_FALSE(node.GetMetaInfoMap()); | 1154 EXPECT_FALSE(node.GetMetaInfoMap()); |
| 1155 } | 1155 } |
| 1156 | 1156 |
| 1157 } // namespace | 1157 } // namespace |
| OLD | NEW |