Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chrome/browser/bookmarks/bookmark_model_unittest.cc

Issue 184663002: Omnibox: Make URLs of Bookmarks Searchable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ALL_MATCHES (in response to recent changes) Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_factory.cc ('k') | chrome/browser/bookmarks/bookmark_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698