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" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 134 } |
135 | 135 |
136 private: | 136 private: |
137 const BookmarkNode* node1_; | 137 const BookmarkNode* node1_; |
138 const BookmarkNode* node2_; | 138 const BookmarkNode* node2_; |
139 int index1_; | 139 int index1_; |
140 int index2_; | 140 int index2_; |
141 }; | 141 }; |
142 | 142 |
143 BookmarkModelTest() | 143 BookmarkModelTest() |
144 : model_(NULL) { | 144 : model_(NULL, false) { |
145 model_.AddObserver(this); | 145 model_.AddObserver(this); |
146 ClearCounts(); | 146 ClearCounts(); |
147 } | 147 } |
148 | 148 |
149 virtual void BookmarkModelLoaded(BookmarkModel* model, | 149 virtual void BookmarkModelLoaded(BookmarkModel* model, |
150 bool ids_reassigned) OVERRIDE { | 150 bool ids_reassigned) OVERRIDE { |
151 // We never load from the db, so that this should never get invoked. | 151 // We never load from the db, so that this should never get invoked. |
152 NOTREACHED(); | 152 NOTREACHED(); |
153 } | 153 } |
154 | 154 |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 EXPECT_TRUE(node.DeleteMetaInfo("key2.subkey2.leaf")); | 1116 EXPECT_TRUE(node.DeleteMetaInfo("key2.subkey2.leaf")); |
1117 EXPECT_FALSE(node.DeleteMetaInfo("key3")); | 1117 EXPECT_FALSE(node.DeleteMetaInfo("key3")); |
1118 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); | 1118 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); |
1119 EXPECT_FALSE(node.GetMetaInfo("key2.subkey1", &out_value)); | 1119 EXPECT_FALSE(node.GetMetaInfo("key2.subkey1", &out_value)); |
1120 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2", &out_value)); | 1120 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2", &out_value)); |
1121 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2.leaf", &out_value)); | 1121 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2.leaf", &out_value)); |
1122 EXPECT_FALSE(node.GetMetaInfoMap()); | 1122 EXPECT_FALSE(node.GetMetaInfoMap()); |
1123 } | 1123 } |
1124 | 1124 |
1125 } // namespace | 1125 } // namespace |
OLD | NEW |