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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h

Issue 2277923002: Attempt 2 at enabling a tab dragging test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698