Commit d6805d0d authored by mkwst's avatar mkwst Committed by Commit bot

Content Shell: Move shell_layout_tests_android into layout_tests/.

BUG=420994

Review URL: https://codereview.chromium.org/661743002

Cr-Commit-Position: refs/heads/master@{#299892}
parent c569d986
...@@ -92,6 +92,8 @@ ...@@ -92,6 +92,8 @@
'shell/app/webkit_test_platform_support_win.cc', 'shell/app/webkit_test_platform_support_win.cc',
'shell/browser/ipc_echo_message_filter.cc', 'shell/browser/ipc_echo_message_filter.cc',
'shell/browser/ipc_echo_message_filter.h', 'shell/browser/ipc_echo_message_filter.h',
'shell/browser/layout_test/layout_test_android.cc',
'shell/browser/layout_test/layout_test_android.h',
'shell/browser/layout_test/layout_test_browser_context.cc', 'shell/browser/layout_test/layout_test_browser_context.cc',
'shell/browser/layout_test/layout_test_browser_context.h', 'shell/browser/layout_test/layout_test_browser_context.h',
'shell/browser/layout_test/layout_test_browser_main.cc', 'shell/browser/layout_test/layout_test_browser_main.cc',
...@@ -136,8 +138,6 @@ ...@@ -136,8 +138,6 @@
'shell/browser/shell_javascript_dialog_manager.cc', 'shell/browser/shell_javascript_dialog_manager.cc',
'shell/browser/shell_javascript_dialog_manager.h', 'shell/browser/shell_javascript_dialog_manager.h',
'shell/browser/shell_javascript_dialog_win.cc', 'shell/browser/shell_javascript_dialog_win.cc',
'shell/browser/shell_layout_tests_android.cc',
'shell/browser/shell_layout_tests_android.h',
'shell/browser/shell_mojo_test_utils_android.cc', 'shell/browser/shell_mojo_test_utils_android.cc',
'shell/browser/shell_mojo_test_utils_android.h', 'shell/browser/shell_mojo_test_utils_android.h',
'shell/browser/shell_login_dialog.cc', 'shell/browser/shell_login_dialog.cc',
......
...@@ -41,6 +41,8 @@ static_library("content_shell_lib") { ...@@ -41,6 +41,8 @@ static_library("content_shell_lib") {
"app/webkit_test_platform_support_win.cc", "app/webkit_test_platform_support_win.cc",
"browser/ipc_echo_message_filter.cc", "browser/ipc_echo_message_filter.cc",
"browser/ipc_echo_message_filter.h", "browser/ipc_echo_message_filter.h",
"browser/layout_test/layout_test_android.cc",
"browser/layout_test/layout_test_android.h",
"browser/layout_test/layout_test_browser_context.cc", "browser/layout_test/layout_test_browser_context.cc",
"browser/layout_test/layout_test_browser_context.h", "browser/layout_test/layout_test_browser_context.h",
"browser/layout_test/layout_test_browser_main.cc", "browser/layout_test/layout_test_browser_main.cc",
...@@ -84,8 +86,6 @@ static_library("content_shell_lib") { ...@@ -84,8 +86,6 @@ static_library("content_shell_lib") {
"browser/shell_javascript_dialog_manager.cc", "browser/shell_javascript_dialog_manager.cc",
"browser/shell_javascript_dialog_manager.h", "browser/shell_javascript_dialog_manager.h",
"browser/shell_javascript_dialog_win.cc", "browser/shell_javascript_dialog_win.cc",
"browser/shell_layout_tests_android.cc",
"browser/shell_layout_tests_android.h",
"browser/shell_mojo_test_utils_android.cc", "browser/shell_mojo_test_utils_android.cc",
"browser/shell_mojo_test_utils_android.h", "browser/shell_mojo_test_utils_android.h",
"browser/shell_login_dialog.cc", "browser/shell_login_dialog.cc",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "content/shell/browser/shell_layout_tests_android.h" #include "content/shell/browser/layout_test/layout_test_android.h"
#include "base/android/fifo_utils.h" #include "base/android/fifo_utils.h"
#include "base/android/jni_android.h" #include "base/android/jni_android.h"
...@@ -57,8 +57,6 @@ bool GetTestUrlForAndroid(std::string& path_or_url, GURL* url) { ...@@ -57,8 +57,6 @@ bool GetTestUrlForAndroid(std::string& path_or_url, GURL* url) {
} }
void EnsureInitializeForAndroidLayoutTests() { void EnsureInitializeForAndroidLayoutTests() {
CHECK(CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree));
JNIEnv* env = base::android::AttachCurrentThread(); JNIEnv* env = base::android::AttachCurrentThread();
content::NestedMessagePumpAndroid::RegisterJni(env); content::NestedMessagePumpAndroid::RegisterJni(env);
content::RegisterNativesImpl(env); content::RegisterNativesImpl(env);
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CONTENT_SHELL_BROWSER_SHELL_LAYOUT_TESTS_ANDROID_H_ #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_ANDROID_H_
#define CONTENT_SHELL_BROWSER_SHELL_LAYOUT_TESTS_ANDROID_H_ #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_ANDROID_H_
#include <string> #include <string>
...@@ -22,4 +22,4 @@ void EnsureInitializeForAndroidLayoutTests(); ...@@ -22,4 +22,4 @@ void EnsureInitializeForAndroidLayoutTests();
} // namespace content } // namespace content
#endif // CONTENT_SHELL_BROWSER_SHELL_LAYOUT_TESTS_ANDROID_H_ #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_ANDROID_H_
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
#include "base/run_loop.h" #include "base/run_loop.h"
#include "content/shell/browser/shell_layout_tests_android.h" #include "content/shell/browser/layout_test/layout_test_android.h"
#endif #endif
namespace { namespace {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment