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

Side by Side Diff: chrome/browser/ui/fullscreen/fullscreen_controller_interactive_browsertest.cc

Issue 10807047: Create content\public\test\test_utils.h to hold common test classes that are used by unit and brows… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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 #include "chrome/browser/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 #include "chrome/browser/ui/browser_tabstrip.h" 6 #include "chrome/browser/ui/browser_tabstrip.h"
7 #include "chrome/browser/ui/browser_window.h" 7 #include "chrome/browser/ui/browser_window.h"
8 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" 8 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h"
9 #include "chrome/test/base/ui_test_utils.h"
9 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_widget_host_view.h" 11 #include "content/public/browser/render_widget_host_view.h"
11 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
12 13
13 using content::WebContents; 14 using content::WebContents;
14 15
15 class FullscreenControllerInteractiveTest 16 class FullscreenControllerInteractiveTest
16 : public FullscreenControllerTest { 17 : public FullscreenControllerTest {
17 protected: 18 protected:
18 // IsMouseLocked verifies that the FullscreenController state believes 19 // IsMouseLocked verifies that the FullscreenController state believes
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 510
510 GURL url = test_server()->GetURL("simple.html"); 511 GURL url = test_server()->GetURL("simple.html");
511 AddTabAtIndexAndWait(0, url, content::PAGE_TRANSITION_TYPED); 512 AddTabAtIndexAndWait(0, url, content::PAGE_TRANSITION_TYPED);
512 513
513 // Validate that going fullscreen for a URL defaults to asking permision. 514 // Validate that going fullscreen for a URL defaults to asking permision.
514 ASSERT_FALSE(IsFullscreenPermissionRequested()); 515 ASSERT_FALSE(IsFullscreenPermissionRequested());
515 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(true)); 516 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(true));
516 ASSERT_TRUE(IsFullscreenPermissionRequested()); 517 ASSERT_TRUE(IsFullscreenPermissionRequested());
517 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(false)); 518 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(false));
518 } 519 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | chrome/browser/ui/fullscreen/fullscreen_controller_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698