Michael, please take a look. This looks big, but it's almost all just cut/paste between files. Thanks!
Most of this is cut/paste, with TEST_F -> IN_PROC_BROWSER_TEST_F and the test suite class name updated. I've called out the differences.
Browser* browser2 = CreateBrowser(profile());I had to rewrite this block not to use TestBrowserWindow and instead us a real Browser. (I'll fix this up for Android later.)
// A new browser starts with 1 tab open, so iterate from 1.Likewise I had to change tab creation to use real tabs, not TestWebContents.
ASSERT_EQ(kNumTabs2, tab_strip_model2->count());Cut/paste resumes here.
BrowserWindow* browser_window = browser()->window();I had to change this to use a real BrowserWindow instead of a TestBrowserWindow. Otherise the rest of the test is cut/paste.
IN_PROC_BROWSER_TEST_F(TabGroupsApiBrowserTest,All cut/paste.
#include "extensions/common/extension_builder.h"I'm not cleaning up the CLs because I'm going to delete this file in 1-2 CLs.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +0 |
Ohh shoot, sorry for the review! I went up relation chain reviewing, without realizing I wasn't a reviewer for this CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
No worries! I sent this to Michael to try to save you some work. :-)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Most of this is cut/paste, with TEST_F -> IN_PROC_BROWSER_TEST_F and the test suite class name updated. I've called out the differences.
Acknowledged
I had to rewrite this block not to use TestBrowserWindow and instead us a real Browser. (I'll fix this up for Android later.)
Acknowledged
// A new browser starts with 1 tab open, so iterate from 1.Likewise I had to change tab creation to use real tabs, not TestWebContents.
Acknowledged
ASSERT_EQ(kNumTabs2, tab_strip_model2->count());Michael WojcickaCut/paste resumes here.
Acknowledged
I had to change this to use a real BrowserWindow instead of a TestBrowserWindow. Otherise the rest of the test is cut/paste.
Acknowledged
IN_PROC_BROWSER_TEST_F(TabGroupsApiBrowserTest,Michael WojcickaAll cut/paste.
Acknowledged
I'm not cleaning up the CLs because I'm going to delete this file in 1-2 CLs.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
extensions: Port tab group API unit tests to browser tests, part 6
The tab groups API unit test suite provides good coverage, but uses
concepts like Browser and BrowserWindow that are not supposed to be
used anymore in unit tests. (See chrome browser design principles in
//docs or the comment in this browser test file.) Converting to browser
test both fixes this design issue and sets up the tests for future
conversion to run on desktop Android.
This CL cut/pastes over all the remaining tests that don't use the
EventRouter. Those will come in a followup.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |