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

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

Issue 6705012: Move the rest of the content browser->renderer messages to content. Also move drag related messa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/browser/prefs/pref_value_store.h" 10 #include "chrome/browser/prefs/pref_value_store.h"
11 #include "chrome/common/bindings_policy.h" 11 #include "chrome/common/bindings_policy.h"
12 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
15 #include "chrome/common/render_messages_params.h"
16 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
17 #include "chrome/test/testing_pref_service.h" 16 #include "chrome/test/testing_pref_service.h"
18 #include "chrome/test/testing_profile.h" 17 #include "chrome/test/testing_profile.h"
19 #include "content/browser/browser_thread.h" 18 #include "content/browser/browser_thread.h"
20 #include "content/browser/renderer_host/render_view_host.h" 19 #include "content/browser/renderer_host/render_view_host.h"
21 #include "content/browser/renderer_host/render_widget_host_view.h" 20 #include "content/browser/renderer_host/render_widget_host_view.h"
22 #include "content/browser/renderer_host/test_render_view_host.h" 21 #include "content/browser/renderer_host/test_render_view_host.h"
23 #include "content/browser/site_instance.h" 22 #include "content/browser/site_instance.h"
24 #include "content/browser/tab_contents/constrained_window.h" 23 #include "content/browser/tab_contents/constrained_window.h"
25 #include "content/browser/tab_contents/interstitial_page.h" 24 #include "content/browser/tab_contents/interstitial_page.h"
26 #include "content/browser/tab_contents/navigation_controller.h" 25 #include "content/browser/tab_contents/navigation_controller.h"
27 #include "content/browser/tab_contents/navigation_entry.h" 26 #include "content/browser/tab_contents/navigation_entry.h"
28 #include "content/browser/tab_contents/test_tab_contents.h" 27 #include "content/browser/tab_contents/test_tab_contents.h"
28 #include "content/common/view_messages.h"
29 #include "ipc/ipc_channel.h" 29 #include "ipc/ipc_channel.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 #include "ui/base/message_box_flags.h" 31 #include "ui/base/message_box_flags.h"
32 #include "webkit/glue/webkit_glue.h" 32 #include "webkit/glue/webkit_glue.h"
33 33
34 using webkit_glue::PasswordForm; 34 using webkit_glue::PasswordForm;
35 35
36 static void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, 36 static void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params,
37 int page_id, 37 int page_id,
38 const GURL& url) { 38 const GURL& url) {
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 window.close_count = 0; 1738 window.close_count = 0;
1739 1739
1740 const int kWindowCount = 4; 1740 const int kWindowCount = 4;
1741 for (int i = 0; i < kWindowCount; i++) { 1741 for (int i = 0; i < kWindowCount; i++) {
1742 tab_contents->AddConstrainedDialog(&window); 1742 tab_contents->AddConstrainedDialog(&window);
1743 } 1743 }
1744 EXPECT_EQ(window.close_count, 0); 1744 EXPECT_EQ(window.close_count, 0);
1745 delete tab_contents; 1745 delete tab_contents;
1746 EXPECT_EQ(window.close_count, kWindowCount); 1746 EXPECT_EQ(window.close_count, kWindowCount);
1747 } 1747 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698