OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 // Creates a new Browser and resizes |browser()| and the new browser to be | 45 // Creates a new Browser and resizes |browser()| and the new browser to be |
46 // side by side. | 46 // side by side. |
47 Browser* CreateAnotherWindowBrowserAndRelayout(); | 47 Browser* CreateAnotherWindowBrowserAndRelayout(); |
48 | 48 |
49 void SetWindowFinderForTabStrip(TabStrip* tab_strip, | 49 void SetWindowFinderForTabStrip(TabStrip* tab_strip, |
50 std::unique_ptr<WindowFinder> window_finder); | 50 std::unique_ptr<WindowFinder> window_finder); |
51 | 51 |
52 const BrowserList* browser_list; | 52 const BrowserList* browser_list; |
53 | 53 |
| 54 protected: |
| 55 // InProcessBrowserTest: |
| 56 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 57 |
54 private: | 58 private: |
55 DISALLOW_COPY_AND_ASSIGN(TabDragControllerTest); | 59 DISALLOW_COPY_AND_ASSIGN(TabDragControllerTest); |
56 }; | 60 }; |
57 | 61 |
58 namespace test { | 62 namespace test { |
59 | 63 |
60 // Returns the TabStrip for |browser|. | 64 // Returns the TabStrip for |browser|. |
61 TabStrip* GetTabStripForBrowser(Browser* browser); | 65 TabStrip* GetTabStripForBrowser(Browser* browser); |
62 | 66 |
63 // Sets the id of |web_contents| to |id|. | 67 // Sets the id of |web_contents| to |id|. |
64 void SetID(content::WebContents* web_contents, int id); | 68 void SetID(content::WebContents* web_contents, int id); |
65 | 69 |
66 // Resets the ids of all the tabs in |model| starting at |start|. That is, the | 70 // Resets the ids of all the tabs in |model| starting at |start|. That is, the |
67 // id of the first tab is set to |start|, the second tab |start + 1| ... | 71 // id of the first tab is set to |start|, the second tab |start + 1| ... |
68 void ResetIDs(TabStripModel* model, int start); | 72 void ResetIDs(TabStripModel* model, int start); |
69 | 73 |
70 // Returns a string representation of the ids of the tabs in |model|. Each id | 74 // Returns a string representation of the ids of the tabs in |model|. Each id |
71 // is separated by a space. | 75 // is separated by a space. |
72 std::string IDString(TabStripModel* model); | 76 std::string IDString(TabStripModel* model); |
73 | 77 |
74 } // namespace test | 78 } // namespace test |
75 | 79 |
76 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H
_ | 80 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H
_ |
OLD | NEW |