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

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

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 "app/message_box_flags.h" 5 #include "app/message_box_flags.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/pref_service.h" 8 #include "chrome/browser/pref_service.h"
8 #include "chrome/browser/pref_value_store.h" 9 #include "chrome/browser/pref_value_store.h"
9 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
10 #include "chrome/browser/renderer_host/render_widget_host_view.h" 11 #include "chrome/browser/renderer_host/render_widget_host_view.h"
11 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 12 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
12 #include "chrome/browser/chrome_thread.h" 13 #include "chrome/browser/chrome_thread.h"
13 #include "chrome/browser/tab_contents/interstitial_page.h" 14 #include "chrome/browser/tab_contents/interstitial_page.h"
14 #include "chrome/browser/tab_contents/navigation_controller.h" 15 #include "chrome/browser/tab_contents/navigation_controller.h"
15 #include "chrome/browser/tab_contents/navigation_entry.h" 16 #include "chrome/browser/tab_contents/navigation_entry.h"
16 #include "chrome/browser/tab_contents/test_tab_contents.h" 17 #include "chrome/browser/tab_contents/test_tab_contents.h"
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 1470
1470 // While the interstitial is showing, let's simulate the hidden page 1471 // While the interstitial is showing, let's simulate the hidden page
1471 // attempting to show a JS message. 1472 // attempting to show a JS message.
1472 IPC::Message* dummy_message = new IPC::Message; 1473 IPC::Message* dummy_message = new IPC::Message;
1473 bool did_suppress_message = false; 1474 bool did_suppress_message = false;
1474 contents()->RunJavaScriptMessage(L"This is an informative message", L"OK", 1475 contents()->RunJavaScriptMessage(L"This is an informative message", L"OK",
1475 kGURL, MessageBoxFlags::kIsJavascriptAlert, dummy_message, 1476 kGURL, MessageBoxFlags::kIsJavascriptAlert, dummy_message,
1476 &did_suppress_message); 1477 &did_suppress_message);
1477 EXPECT_TRUE(did_suppress_message); 1478 EXPECT_TRUE(did_suppress_message);
1478 } 1479 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/navigation_entry_unittest.cc ('k') | chrome/browser/views/about_ipc_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698