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

Side by Side Diff: chrome/test/plugin/pdf_browsertest.cc

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/test/in_process_browser_test.cc ('k') | chrome/test/test_notification_tracker.h » ('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) 2010 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_window.h" 11 #include "chrome/browser/ui/browser_window.h"
12 #include "chrome/browser/ui/window_sizer.h" 12 #include "chrome/browser/ui/window_sizer.h"
13 #include "chrome/common/chrome_paths.h" 13 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/notification_observer.h"
15 #include "chrome/common/notification_type.h"
16 #include "chrome/test/in_process_browser_test.h" 14 #include "chrome/test/in_process_browser_test.h"
17 #include "chrome/test/ui_test_utils.h" 15 #include "chrome/test/ui_test_utils.h"
18 #include "content/browser/renderer_host/render_view_host.h" 16 #include "content/browser/renderer_host/render_view_host.h"
19 #include "content/browser/tab_contents/tab_contents.h" 17 #include "content/browser/tab_contents/tab_contents.h"
18 #include "content/common/notification_observer.h"
19 #include "content/common/notification_type.h"
20 #include "net/test/test_server.h" 20 #include "net/test/test_server.h"
21 #include "ui/base/clipboard/clipboard.h" 21 #include "ui/base/clipboard/clipboard.h"
22 #include "ui/gfx/codec/png_codec.h" 22 #include "ui/gfx/codec/png_codec.h"
23 23
24 namespace { 24 namespace {
25 25
26 // Include things like browser frame and scrollbar and make sure we're bigger 26 // Include things like browser frame and scrollbar and make sure we're bigger
27 // than the test pdf document. 27 // than the test pdf document.
28 static const int kBrowserWidth = 1000; 28 static const int kBrowserWidth = 1000;
29 static const int kBrowserHeight = 600; 29 static const int kBrowserHeight = 600;
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript( 317 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript(
318 browser()->GetSelectedTabContents()->render_view_host(), 318 browser()->GetSelectedTabContents()->render_view_host(),
319 std::wstring(), 319 std::wstring(),
320 L"reloadPDF();")); 320 L"reloadPDF();"));
321 321
322 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); 322 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser()));
323 ASSERT_EQ("success", browser()->GetSelectedTabContents()->GetURL().query()); 323 ASSERT_EQ("success", browser()->GetSelectedTabContents()->GetURL().query());
324 } 324 }
325 325
326 } // namespace 326 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/in_process_browser_test.cc ('k') | chrome/test/test_notification_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698