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

Side by Side Diff: chrome/browser/ui/browser_browsertest.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 2 Created 8 years, 7 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
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 <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #if defined(OS_MACOSX) 10 #if defined(OS_MACOSX)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "chrome/browser/browser_process.h" 68 #include "chrome/browser/browser_process.h"
69 #endif 69 #endif
70 70
71 using content::InterstitialPage; 71 using content::InterstitialPage;
72 using content::NavigationController; 72 using content::NavigationController;
73 using content::NavigationEntry; 73 using content::NavigationEntry;
74 using content::OpenURLParams; 74 using content::OpenURLParams;
75 using content::Referrer; 75 using content::Referrer;
76 using content::WebContents; 76 using content::WebContents;
77 using content::WebContentsObserver; 77 using content::WebContentsObserver;
78 using extensions::Extension;
78 79
79 namespace { 80 namespace {
80 81
81 const char* kBeforeUnloadHTML = 82 const char* kBeforeUnloadHTML =
82 "<html><head><title>beforeunload</title></head><body>" 83 "<html><head><title>beforeunload</title></head><body>"
83 "<script>window.onbeforeunload=function(e){return 'foo'}</script>" 84 "<script>window.onbeforeunload=function(e){return 'foo'}</script>"
84 "</body></html>"; 85 "</body></html>";
85 86
86 const char* kOpenNewBeforeUnloadPage = 87 const char* kOpenNewBeforeUnloadPage =
87 "w=window.open(); w.onbeforeunload=function(e){return 'foo'};"; 88 "w=window.open(); w.onbeforeunload=function(e){return 'foo'};";
(...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 command_line->AppendSwitchASCII(switches::kApp, url.spec()); 1902 command_line->AppendSwitchASCII(switches::kApp, url.spec());
1902 } 1903 }
1903 }; 1904 };
1904 1905
1905 IN_PROC_BROWSER_TEST_F(AppModeTest, EnableAppModeTest) { 1906 IN_PROC_BROWSER_TEST_F(AppModeTest, EnableAppModeTest) {
1906 // Test that an application browser window loads correctly. 1907 // Test that an application browser window loads correctly.
1907 1908
1908 // Verify the browser is in application mode. 1909 // Verify the browser is in application mode.
1909 EXPECT_TRUE(browser()->IsApplication()); 1910 EXPECT_TRUE(browser()->IsApplication());
1910 } 1911 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698