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/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/hash_tables.h" | 15 #include "base/hash_tables.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "base/string_split.h" | |
19 #include "base/string_util.h" | 18 #include "base/string_util.h" |
20 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/string_split.h" |
21 #include "base/time.h" | 21 #include "base/time.h" |
22 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
23 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 23 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
24 #include "chrome/browser/bookmarks/bookmark_model_observer.h" | 24 #include "chrome/browser/bookmarks/bookmark_model_observer.h" |
25 #include "chrome/browser/bookmarks/bookmark_utils.h" | 25 #include "chrome/browser/bookmarks/bookmark_utils.h" |
26 #include "chrome/browser/history/history_notifications.h" | 26 #include "chrome/browser/history/history_notifications.h" |
27 #include "chrome/browser/history/history_service.h" | 27 #include "chrome/browser/history/history_service.h" |
28 #include "chrome/browser/history/history_service_factory.h" | 28 #include "chrome/browser/history/history_service_factory.h" |
29 #include "chrome/test/base/model_test_utils.h" | 29 #include "chrome/test/base/model_test_utils.h" |
30 #include "chrome/test/base/testing_profile.h" | 30 #include "chrome/test/base/testing_profile.h" |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 | 1050 |
1051 EXPECT_TRUE(node.DeleteMetaInfo("key1")); | 1051 EXPECT_TRUE(node.DeleteMetaInfo("key1")); |
1052 EXPECT_TRUE(node.DeleteMetaInfo("key2")); | 1052 EXPECT_TRUE(node.DeleteMetaInfo("key2")); |
1053 EXPECT_FALSE(node.DeleteMetaInfo("key3")); | 1053 EXPECT_FALSE(node.DeleteMetaInfo("key3")); |
1054 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); | 1054 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); |
1055 EXPECT_FALSE(node.GetMetaInfo("key2", &out_value)); | 1055 EXPECT_FALSE(node.GetMetaInfo("key2", &out_value)); |
1056 EXPECT_TRUE(node.meta_info_str().empty()); | 1056 EXPECT_TRUE(node.meta_info_str().empty()); |
1057 } | 1057 } |
1058 | 1058 |
1059 } // namespace | 1059 } // namespace |
OLD | NEW |