Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / sync / test / integration / bookmarks_helper.h
index 2c08870..036a390 100644 (file)
@@ -10,7 +10,7 @@
 #include <vector>
 
 #include "base/compiler_specific.h"
-#include "components/bookmarks/core/browser/bookmark_model.h"
+#include "components/bookmarks/browser/bookmark_model.h"
 #include "testing/gtest/include/gtest/gtest.h"
 #include "third_party/skia/include/core/SkBitmap.h"
 #include "url/gurl.h"
@@ -31,6 +31,9 @@ const BookmarkNode* GetOtherNode(int index) WARN_UNUSED_RESULT;
 // Used to access the "Synced Bookmarks" node within a particular sync profile.
 const BookmarkNode* GetSyncedBookmarksNode(int index) WARN_UNUSED_RESULT;
 
+// Used to access the "Managed Bookmarks" node for the given profile.
+const BookmarkNode* GetManagedNode(int index) WARN_UNUSED_RESULT;
+
 // Used to access the bookmarks within the verifier sync profile.
 BookmarkModel* GetVerifierBookmarkModel() WARN_UNUSED_RESULT;
 
@@ -38,7 +41,7 @@ BookmarkModel* GetVerifierBookmarkModel() WARN_UNUSED_RESULT;
 // profile |profile|. Returns a pointer to the node that was added.
 const BookmarkNode* AddURL(
     int profile,
-    const std::wstring& title,
+    const std::string& title,
     const GURL& url) WARN_UNUSED_RESULT;
 
 // Adds a URL with address |url| and title |title| to the bookmark bar of
@@ -47,7 +50,7 @@ const BookmarkNode* AddURL(
 const BookmarkNode* AddURL(
     int profile,
     int index,
-    const std::wstring& title,
+    const std::string& title,
     const GURL& url) WARN_UNUSED_RESULT;
 
 // Adds a URL with address |url| and title |title| under the node |parent| of
@@ -57,21 +60,21 @@ const BookmarkNode* AddURL(
     int profile,
     const BookmarkNode* parent,
     int index,
-    const std::wstring& title,
+    const std::string& title,
     const GURL& url) WARN_UNUSED_RESULT;
 
 // Adds a folder named |title| to the bookmark bar of profile |profile|.
 // Returns a pointer to the folder that was added.
 const BookmarkNode* AddFolder(
     int profile,
-    const std::wstring& title) WARN_UNUSED_RESULT;
+    const std::string& title) WARN_UNUSED_RESULT;
 
 // Adds a folder named |title| to the bookmark bar of profile |profile| at
 // position |index|. Returns a pointer to the folder that was added.
 const BookmarkNode* AddFolder(
     int profile,
     int index,
-    const std::wstring& title) WARN_UNUSED_RESULT;
+    const std::string& title) WARN_UNUSED_RESULT;
 
 // Adds a folder named |title| to the node |parent| in the bookmark model of
 // profile |profile| at position |index|. Returns a pointer to the node that
@@ -80,13 +83,13 @@ const BookmarkNode* AddFolder(
     int profile,
     const BookmarkNode* parent,
     int index,
-    const std::wstring& title) WARN_UNUSED_RESULT;
+    const std::string& title) WARN_UNUSED_RESULT;
 
 // Changes the title of the node |node| in the bookmark model of profile
 // |profile| to |new_title|.
 void SetTitle(int profile,
-                     const BookmarkNode* node,
-                     const std::wstring& new_title);
+              const BookmarkNode* node,
+              const std::string& new_title);
 
 // The source of the favicon.
 enum FaviconSource {
@@ -172,13 +175,13 @@ const BookmarkNode* GetUniqueNodeByURL(
 // whose titles match the string |title|.
 int CountBookmarksWithTitlesMatching(
     int profile,
-    const std::wstring& title) WARN_UNUSED_RESULT;
+    const std::string& title) WARN_UNUSED_RESULT;
 
 // Returns the number of bookmark folders in the bookmark model of profile
 // |profile| whose titles contain the query string |title|.
 int CountFoldersWithTitlesMatching(
     int profile,
-    const std::wstring& title) WARN_UNUSED_RESULT;
+    const std::string& title) WARN_UNUSED_RESULT;
 
 // Creates a favicon of |color| with image reps of the platform's supported
 // scale factors (eg MacOS) in addition to 1x.
@@ -191,16 +194,16 @@ gfx::Image Create1xFaviconFromPNGFile(const std::string& path);
 std::string IndexedURL(int i);
 
 // Returns a URL title identifiable by |i|.
-std::wstring IndexedURLTitle(int i);
+std::string IndexedURLTitle(int i);
 
 // Returns a folder name identifiable by |i|.
-std::wstring IndexedFolderName(int i);
+std::string IndexedFolderName(int i);
 
 // Returns a subfolder name identifiable by |i|.
-std::wstring IndexedSubfolderName(int i);
+std::string IndexedSubfolderName(int i);
 
 // Returns a subsubfolder name identifiable by |i|.
-std::wstring IndexedSubsubfolderName(int i);
+std::string IndexedSubsubfolderName(int i);
 
 }  // namespace bookmarks_helper