| 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/test/model_test_utils.h" | 5 #include "chrome/test/base/model_test_utils.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/bookmarks/bookmark_model.h" | 8 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 | 10 |
| 11 namespace model_test_utils { | 11 namespace model_test_utils { |
| 12 | 12 |
| 13 std::string ModelStringFromNode(const BookmarkNode* node) { | 13 std::string ModelStringFromNode(const BookmarkNode* node) { |
| 14 // Since the children of the node are not available as a vector, | 14 // Since the children of the node are not available as a vector, |
| 15 // we'll just have to do it the hard way. | 15 // we'll just have to do it the hard way. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 const std::string& model_string) { | 75 const std::string& model_string) { |
| 76 DCHECK(node); | 76 DCHECK(node); |
| 77 const std::string folder_tell(":["); | 77 const std::string folder_tell(":["); |
| 78 std::string::size_type start_pos = 0; | 78 std::string::size_type start_pos = 0; |
| 79 std::string::size_type end_pos = | 79 std::string::size_type end_pos = |
| 80 AddNodesFromString(model, node, model_string, start_pos); | 80 AddNodesFromString(model, node, model_string, start_pos); |
| 81 DCHECK(end_pos == std::string::npos); | 81 DCHECK(end_pos == std::string::npos); |
| 82 } | 82 } |
| 83 | 83 |
| 84 } // namespace model_test_utils | 84 } // namespace model_test_utils |
| OLD | NEW |