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

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

Issue 11414223: Move the test functions that deal with focus to interactive_ui_tets_utils.h and into the interactiv… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "chrome/browser/content_settings/host_content_settings_map.h" 6 #include "chrome/browser/content_settings/host_content_settings_map.h"
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_commands.h" 9 #include "chrome/browser/ui/browser_commands.h"
10 #include "chrome/browser/ui/browser_tabstrip.h" 10 #include "chrome/browser/ui/browser_tabstrip.h"
11 #include "chrome/browser/ui/browser_window.h" 11 #include "chrome/browser/ui/browser_window.h"
12 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" 12 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h"
13 #include "chrome/test/base/interactive_test_utils.h"
13 #include "chrome/test/base/ui_test_utils.h" 14 #include "chrome/test/base/ui_test_utils.h"
14 #include "content/public/browser/render_view_host.h" 15 #include "content/public/browser/render_view_host.h"
15 #include "content/public/browser/render_widget_host_view.h" 16 #include "content/public/browser/render_widget_host_view.h"
16 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
17 #include "content/public/common/url_constants.h" 18 #include "content/public/common/url_constants.h"
18 19
19 #if defined(OS_MACOSX) 20 #if defined(OS_MACOSX)
20 #include "base/mac/mac_util.h" 21 #include "base/mac/mac_util.h"
21 #endif 22 #endif
22 23
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 870
870 GURL url = test_server()->GetURL("simple.html"); 871 GURL url = test_server()->GetURL("simple.html");
871 AddTabAtIndex(0, url, PAGE_TRANSITION_TYPED); 872 AddTabAtIndex(0, url, PAGE_TRANSITION_TYPED);
872 873
873 // Validate that going fullscreen for a URL defaults to asking permision. 874 // Validate that going fullscreen for a URL defaults to asking permision.
874 ASSERT_FALSE(IsFullscreenPermissionRequested()); 875 ASSERT_FALSE(IsFullscreenPermissionRequested());
875 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(true)); 876 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(true));
876 ASSERT_TRUE(IsFullscreenPermissionRequested()); 877 ASSERT_TRUE(IsFullscreenPermissionRequested());
877 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(false)); 878 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(false));
878 } 879 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698