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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud_interative_uitest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 "chrome/browser/printing/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h"
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/ui/browser_window.h" 21 #include "chrome/browser/ui/browser_window.h"
22 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 22 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
25 #include "chrome/test/base/in_process_browser_test.h" 25 #include "chrome/test/base/in_process_browser_test.h"
26 #include "chrome/test/base/ui_test_utils.h" 26 #include "chrome/test/base/ui_test_utils.h"
27 #include "content/public/browser/notification_service.h" 27 #include "content/public/browser/notification_service.h"
28 #include "content/public/browser/notification_types.h" 28 #include "content/public/browser/notification_types.h"
29 #include "content/public/browser/render_view_host.h" 29 #include "content/public/browser/render_view_host.h"
30 #include "content/public/browser/web_contents.h" 30 #include "content/public/browser/web_contents.h"
31 #include "content/test/test_browser_thread.h" 31 #include "content/public/test/test_browser_thread.h"
32 #include "net/url_request/url_request_filter.h" 32 #include "net/url_request/url_request_filter.h"
33 #include "net/url_request/url_request_test_job.h" 33 #include "net/url_request/url_request_test_job.h"
34 #include "net/url_request/url_request_test_util.h" 34 #include "net/url_request/url_request_test_util.h"
35 #include "ui/ui_controls/ui_controls.h" 35 #include "ui/ui_controls/ui_controls.h"
36 36
37 using content::BrowserThread; 37 using content::BrowserThread;
38 38
39 namespace { 39 namespace {
40 40
41 class TestData { 41 class TestData {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 BrowserWindow* window = browser()->window(); 259 BrowserWindow* window = browser()->window();
260 ASSERT_TRUE(window); 260 ASSERT_TRUE(window);
261 gfx::NativeWindow native_window = window->GetNativeHandle(); 261 gfx::NativeWindow native_window = window->GetNativeHandle();
262 ASSERT_TRUE(native_window); 262 ASSERT_TRUE(native_window);
263 bool key_sent = ui_controls::SendKeyPress(native_window, ui::VKEY_ESCAPE, 263 bool key_sent = ui_controls::SendKeyPress(native_window, ui::VKEY_ESCAPE,
264 false, false, false, false); 264 false, false, false, false);
265 EXPECT_TRUE(key_sent); 265 EXPECT_TRUE(key_sent);
266 if (key_sent) 266 if (key_sent)
267 tab_closed_observer.Wait(); 267 tab_closed_observer.Wait();
268 } 268 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698