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/bookmarks/bookmark_model.h" | 5 #include "chrome/browser/bookmarks/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/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.h" | 21 #include "base/time.h" |
22 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 22 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
23 #include "chrome/browser/bookmarks/bookmark_model_observer.h" | 23 #include "chrome/browser/bookmarks/bookmark_model_observer.h" |
24 #include "chrome/browser/bookmarks/bookmark_utils.h" | 24 #include "chrome/browser/bookmarks/bookmark_utils.h" |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 | 1121 |
1122 EXPECT_TRUE(node.DeleteMetaInfo("key1")); | 1122 EXPECT_TRUE(node.DeleteMetaInfo("key1")); |
1123 EXPECT_TRUE(node.DeleteMetaInfo("key2")); | 1123 EXPECT_TRUE(node.DeleteMetaInfo("key2")); |
1124 EXPECT_FALSE(node.DeleteMetaInfo("key3")); | 1124 EXPECT_FALSE(node.DeleteMetaInfo("key3")); |
1125 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); | 1125 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); |
1126 EXPECT_FALSE(node.GetMetaInfo("key2", &out_value)); | 1126 EXPECT_FALSE(node.GetMetaInfo("key2", &out_value)); |
1127 EXPECT_TRUE(node.meta_info_str().empty()); | 1127 EXPECT_TRUE(node.meta_info_str().empty()); |
1128 } | 1128 } |
1129 | 1129 |
1130 } // namespace | 1130 } // namespace |
OLD | NEW |