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

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

Issue 6575009: Move files out of chrome\browser\renderer_host\test alongside their source. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <vector> 5 #include <vector>
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_thread.h" 9 #include "chrome/browser/browser_thread.h"
10 #include "chrome/browser/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/browser/prefs/pref_value_store.h" 11 #include "chrome/browser/prefs/pref_value_store.h"
12 #include "chrome/browser/renderer_host/render_view_host.h"
13 #include "chrome/browser/renderer_host/render_widget_host_view.h"
14 #include "chrome/browser/renderer_host/site_instance.h"
15 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
16 #include "chrome/browser/tab_contents/interstitial_page.h"
17 #include "chrome/browser/tab_contents/navigation_controller.h"
18 #include "chrome/browser/tab_contents/navigation_entry.h"
19 #include "chrome/browser/tab_contents/test_tab_contents.h"
20 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
21 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
22 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
23 #include "chrome/common/render_messages_params.h" 15 #include "chrome/common/render_messages_params.h"
24 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
25 #include "chrome/test/testing_pref_service.h" 17 #include "chrome/test/testing_pref_service.h"
26 #include "chrome/test/testing_profile.h" 18 #include "chrome/test/testing_profile.h"
19 #include "content/browser/renderer_host/render_view_host.h"
20 #include "content/browser/renderer_host/render_widget_host_view.h"
21 #include "content/browser/renderer_host/test_render_view_host.h"
22 #include "content/browser/site_instance.h"
23 #include "content/browser/tab_contents/interstitial_page.h"
24 #include "content/browser/tab_contents/navigation_controller.h"
25 #include "content/browser/tab_contents/navigation_entry.h"
26 #include "content/browser/tab_contents/test_tab_contents.h"
27 #include "ipc/ipc_channel.h" 27 #include "ipc/ipc_channel.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "ui/base/message_box_flags.h" 29 #include "ui/base/message_box_flags.h"
30 30
31 using webkit_glue::PasswordForm; 31 using webkit_glue::PasswordForm;
32 32
33 static void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, 33 static void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params,
34 int page_id, 34 int page_id,
35 const GURL& url) { 35 const GURL& url) {
36 params->page_id = page_id; 36 params->page_id = page_id;
(...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 1610
1611 // It should have a transient entry. 1611 // It should have a transient entry.
1612 EXPECT_TRUE(other_controller.GetTransientEntry()); 1612 EXPECT_TRUE(other_controller.GetTransientEntry());
1613 1613
1614 // And the interstitial should be showing. 1614 // And the interstitial should be showing.
1615 EXPECT_TRUE(other_contents->showing_interstitial_page()); 1615 EXPECT_TRUE(other_contents->showing_interstitial_page());
1616 1616
1617 // And the interstitial should do a reload on don't proceed. 1617 // And the interstitial should do a reload on don't proceed.
1618 EXPECT_TRUE(other_contents->interstitial_page()->reload_on_dont_proceed()); 1618 EXPECT_TRUE(other_contents->interstitial_page()->reload_on_dont_proceed());
1619 } 1619 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator_unittest.cc ('k') | chrome/browser/tabs/tab_strip_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698