OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_test_utils.h" | 5 #include "chrome/browser/bookmarks/bookmark_model_test_utils.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/bookmarks/bookmark_model.h" | 8 #include "chrome/browser/bookmarks/bookmark_model.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 return child_string; | 109 return child_string; |
110 } | 110 } |
111 | 111 |
112 // static | 112 // static |
113 void BookmarkModelTestUtils::AddNodesFromModelString( | 113 void BookmarkModelTestUtils::AddNodesFromModelString( |
114 BookmarkModel* model, | 114 BookmarkModel* model, |
115 const BookmarkNode* node, | 115 const BookmarkNode* node, |
116 const std::string& model_string) { | 116 const std::string& model_string) { |
117 DCHECK(node); | 117 DCHECK(node); |
118 const std::string folder_tell(":["); | |
119 std::string::size_type start_pos = 0; | 118 std::string::size_type start_pos = 0; |
120 std::string::size_type end_pos = | 119 std::string::size_type end_pos = |
121 AddNodesFromString(model, node, model_string, start_pos); | 120 AddNodesFromString(model, node, model_string, start_pos); |
122 DCHECK(end_pos == std::string::npos); | 121 DCHECK(end_pos == std::string::npos); |
123 } | 122 } |
OLD | NEW |