| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/views/bookmarks/bookmark_editor_view.h" |
| 6 |
| 7 #include "chrome/browser/ui/bookmarks/bookmark_utils_desktop.h" |
| 8 #include "chrome/browser/ui/test/test_browser_dialog.h" |
| 9 |
| 10 // Test harness for integration tests using BookmarkEditorView. |
| 11 class BookmarkEditorViewBrowserTest : public DialogBrowserTest { |
| 12 public: |
| 13 BookmarkEditorViewBrowserTest() {} |
| 14 |
| 15 // DialogBrowserTest: |
| 16 void ShowDialog(const std::string& name) override { |
| 17 DCHECK_EQ("all_tabs", name); |
| 18 chrome::ShowBookmarkAllTabsDialog(browser()); |
| 19 } |
| 20 |
| 21 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorViewBrowserTest); |
| 23 }; |
| 24 |
| 25 // Shows the dialog for bookmarking all tabs. This shows a BookmarkEditorView |
| 26 // dialog, with a tree view, where a user can rename and select a parent folder. |
| 27 // Can be interactive when run with --gtest_filter=BrowserDialogTest.Invoke. |
| 28 IN_PROC_BROWSER_TEST_F(BookmarkEditorViewBrowserTest, InvokeDialog_all_tabs) { |
| 29 RunDialog(); |
| 30 } |
| OLD | NEW |