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

Side by Side Diff: chrome/browser/tab_contents/view_source_browsertest.cc

Issue 14691006: Move SpawnedTestServer to its own subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort gyp Created 7 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 | 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 "base/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/app/chrome_command_ids.h" 6 #include "chrome/app/chrome_command_ids.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_commands.h" 8 #include "chrome/browser/ui/browser_commands.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
11 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
12 #include "chrome/test/base/ui_test_utils.h" 12 #include "chrome/test/base/ui_test_utils.h"
13 #include "content/public/browser/navigation_entry.h" 13 #include "content/public/browser/navigation_entry.h"
14 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.h"
15 #include "content/public/browser/notification_types.h" 15 #include "content/public/browser/notification_types.h"
16 #include "content/public/browser/render_view_host.h" 16 #include "content/public/browser/render_view_host.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "content/public/test/browser_test_utils.h" 18 #include "content/public/test/browser_test_utils.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "net/test/spawned_test_server.h" 20 #include "net/test/spawned_test_server/spawned_test_server.h"
21 21
22 namespace { 22 namespace {
23 const char kTestHtml[] = "files/viewsource/test.html"; 23 const char kTestHtml[] = "files/viewsource/test.html";
24 const char kTestMedia[] = "files/media/pink_noise_140ms.wav"; 24 const char kTestMedia[] = "files/media/pink_noise_140ms.wav";
25 } 25 }
26 26
27 typedef InProcessBrowserTest ViewSourceTest; 27 typedef InProcessBrowserTest ViewSourceTest;
28 28
29 // This test renders a page in view-source and then checks to see if the title 29 // This test renders a page in view-source and then checks to see if the title
30 // set in the html was set successfully (it shouldn't because we rendered the 30 // set in the html was set successfully (it shouldn't because we rendered the
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 content::ExecuteScript(browser()->tab_strip_model()->GetWebContentsAt(0), 124 content::ExecuteScript(browser()->tab_strip_model()->GetWebContentsAt(0),
125 "window.location.reload();")); 125 "window.location.reload();"));
126 126
127 content::WindowedNotificationObserver observer2( 127 content::WindowedNotificationObserver observer2(
128 content::NOTIFICATION_LOAD_STOP, 128 content::NOTIFICATION_LOAD_STOP,
129 content::NotificationService::AllSources()); 129 content::NotificationService::AllSources());
130 observer2.Wait(); 130 observer2.Wait();
131 ASSERT_TRUE(browser()->tab_strip_model()->GetWebContentsAt(0)-> 131 ASSERT_TRUE(browser()->tab_strip_model()->GetWebContentsAt(0)->
132 GetController().GetActiveEntry()->IsViewSourceMode()); 132 GetController().GetActiveEntry()->IsViewSourceMode());
133 } 133 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | chrome/browser/translate/translate_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698