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

Unified Diff: ios/chrome/browser/ui/bookmarks/bookmark_ios_unittest.h

Issue 2586993002: Upstream Chrome on iOS source code [3/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/bookmarks/bookmark_ios_unittest.h
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_ios_unittest.h b/ios/chrome/browser/ui/bookmarks/bookmark_ios_unittest.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ae7e601c0281607eb7565a31cb03824e064158e
--- /dev/null
+++ b/ios/chrome/browser/ui/bookmarks/bookmark_ios_unittest.h
@@ -0,0 +1,44 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_IOS_UNITTEST_H_
+#define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_IOS_UNITTEST_H_
+
+#import <Foundation/Foundation.h>
+#include <memory>
+
+#include "ios/web/public/test/test_web_thread_bundle.h"
+#include "testing/platform_test.h"
+
+namespace bookmarks {
+class BookmarkModel;
+class BookmarkNode;
+class ManagedBookmarkService;
+} // namespace bookmarks
+
+class TestChromeBrowserState;
+
+// Provides common bookmark testing infrastructure.
+class BookmarkIOSUnitTest : public PlatformTest {
+ public:
+ BookmarkIOSUnitTest();
+ ~BookmarkIOSUnitTest() override;
+
+ protected:
+ void SetUp() override;
+ const bookmarks::BookmarkNode* AddBookmark(
+ const bookmarks::BookmarkNode* parent,
+ NSString* title);
+ const bookmarks::BookmarkNode* AddFolder(
+ const bookmarks::BookmarkNode* parent,
+ NSString* title);
+ void ChangeTitle(NSString* title, const bookmarks::BookmarkNode* node);
+
+ web::TestWebThreadBundle thread_bundle_;
+ std::unique_ptr<TestChromeBrowserState> chrome_browser_state_;
+ bookmarks::BookmarkModel* _bookmarkModel;
+ bookmarks::ManagedBookmarkService* _managedBookmarkService;
+};
+
+#endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_IOS_UNITTEST_H_

Powered by Google App Engine
This is Rietveld 408576698