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

Side by Side Diff: chrome/test/base/model_test_utils.cc

Issue 7474025: Move more files from chrome/test to chrome/test/base, part #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « chrome/test/base/model_test_utils.h ('k') | chrome/test/base/profile_mock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/test/base/model_test_utils.h ('k') | chrome/test/base/profile_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698