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

Side by Side Diff: chrome/browser/apps/guest_view/web_view_browsertest.cc

Issue 2393343002: Split ExtensionTestObserver and move to //extensions. (Closed)
Patch Set: . Created 4 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <queue> 5 #include <queue>
6 #include <set> 6 #include <set>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/guid.h" 12 #include "base/guid.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/process/process.h" 16 #include "base/process/process.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
19 #include "base/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
21 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
22 #include "base/threading/thread_task_runner_handle.h" 22 #include "base/threading/thread_task_runner_handle.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "chrome/app/chrome_command_ids.h" 24 #include "chrome/app/chrome_command_ids.h"
25 #include "chrome/browser/apps/app_browsertest_util.h" 25 #include "chrome/browser/apps/app_browsertest_util.h"
26 #include "chrome/browser/chrome_content_browser_client.h" 26 #include "chrome/browser/chrome_content_browser_client.h"
27 #include "chrome/browser/chrome_notification_types.h"
27 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 28 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
28 #include "chrome/browser/download/download_history.h" 29 #include "chrome/browser/download/download_history.h"
29 #include "chrome/browser/download/download_prefs.h" 30 #include "chrome/browser/download/download_prefs.h"
30 #include "chrome/browser/download/download_service.h" 31 #include "chrome/browser/download/download_service.h"
31 #include "chrome/browser/download/download_service_factory.h" 32 #include "chrome/browser/download/download_service_factory.h"
32 #include "chrome/browser/lifetime/application_lifetime.h" 33 #include "chrome/browser/lifetime/application_lifetime.h"
33 #include "chrome/browser/pdf/pdf_extension_test_util.h" 34 #include "chrome/browser/pdf/pdf_extension_test_util.h"
34 #include "chrome/browser/prerender/prerender_link_manager.h" 35 #include "chrome/browser/prerender/prerender_link_manager.h"
35 #include "chrome/browser/prerender/prerender_link_manager_factory.h" 36 #include "chrome/browser/prerender/prerender_link_manager_factory.h"
36 #include "chrome/browser/profiles/profile.h" 37 #include "chrome/browser/profiles/profile.h"
(...skipping 3803 matching lines...) Expand 10 before | Expand all | Expand 10 after
3840 gfx::Point embedder_origin = 3841 gfx::Point embedder_origin =
3841 GetEmbedderWebContents()->GetContainerBounds().origin(); 3842 GetEmbedderWebContents()->GetContainerBounds().origin();
3842 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); 3843 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y());
3843 3844
3844 // Generate and send synthetic touch event. 3845 // Generate and send synthetic touch event.
3845 content::SimulateTouchPressAt(GetEmbedderWebContents(), 3846 content::SimulateTouchPressAt(GetEmbedderWebContents(),
3846 guest_rect.CenterPoint()); 3847 guest_rect.CenterPoint());
3847 EXPECT_TRUE(aura_webview->HasFocus()); 3848 EXPECT_TRUE(aura_webview->HasFocus());
3848 } 3849 }
3849 #endif 3850 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698