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

Side by Side Diff: components/bookmarks/test/bookmark_test_helpers.h

Issue 865163003: bookmarks: Move BookmarkNode into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enhanced_bookmarks fix Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_BOOKMARKS_TEST_BOOKMARK_TEST_HELPERS_H_ 5 #ifndef COMPONENTS_BOOKMARKS_TEST_BOOKMARK_TEST_HELPERS_H_
6 #define COMPONENTS_BOOKMARKS_TEST_BOOKMARK_TEST_HELPERS_H_ 6 #define COMPONENTS_BOOKMARKS_TEST_BOOKMARK_TEST_HELPERS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace bookmarks {
11
12 class BookmarkModel;
10 class BookmarkNode; 13 class BookmarkNode;
11 14
12 namespace bookmarks {
13 class BookmarkModel;
14
15 namespace test { 15 namespace test {
16 16
17 // Blocks until |model| finishes loading. 17 // Blocks until |model| finishes loading.
18 void WaitForBookmarkModelToLoad(BookmarkModel* model); 18 void WaitForBookmarkModelToLoad(BookmarkModel* model);
19 19
20 // Return the descendants of |node| as a string useful for verifying node 20 // Return the descendants of |node| as a string useful for verifying node
21 // modifications. The format of the resulting string is: 21 // modifications. The format of the resulting string is:
22 // 22 //
23 // result = node " " , { node " " } 23 // result = node " " , { node " " }
24 // node = bookmark title | folder 24 // node = bookmark title | folder
(...skipping 15 matching lines...) Expand all
40 // NOTE: The string format is very rigid and easily broken if not followed 40 // NOTE: The string format is very rigid and easily broken if not followed
41 // exactly (since we're using a very simple parser). 41 // exactly (since we're using a very simple parser).
42 void AddNodesFromModelString(BookmarkModel* model, 42 void AddNodesFromModelString(BookmarkModel* model,
43 const BookmarkNode* node, 43 const BookmarkNode* node,
44 const std::string& model_string); 44 const std::string& model_string);
45 45
46 } // namespace test 46 } // namespace test
47 } // namespace bookmarks 47 } // namespace bookmarks
48 48
49 #endif // COMPONENTS_BOOKMARKS_TEST_BOOKMARK_TEST_HELPERS_H_ 49 #endif // COMPONENTS_BOOKMARKS_TEST_BOOKMARK_TEST_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698