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

Side by Side Diff: content/test/content_test_launcher.cc

Issue 17076008: content_shell: Move BrowserTestSystemMessageHandler and use it in layout tests for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/test/browser_test_message_pump_android.cc ('k') | no next file » | 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) 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 "content/public/test/test_launcher.h" 5 #include "content/public/test/test_launcher.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/test/test_suite.h" 11 #include "base/test/test_suite.h"
12 #include "content/public/common/content_switches.h" 12 #include "content/public/common/content_switches.h"
13 #include "content/public/test/content_test_suite_base.h" 13 #include "content/public/test/content_test_suite_base.h"
14 #include "content/shell/app/shell_main_delegate.h" 14 #include "content/shell/app/shell_main_delegate.h"
15 #include "content/shell/common/shell_content_client.h" 15 #include "content/shell/common/shell_content_client.h"
16 #include "content/shell/common/shell_switches.h" 16 #include "content/shell/common/shell_switches.h"
17 #include "content/shell/shell_content_browser_client.h" 17 #include "content/shell/shell_content_browser_client.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 #if defined(OS_ANDROID) 20 #if defined(OS_ANDROID)
21 #include "base/message_loop.h" 21 #include "base/message_loop.h"
22 #include "content/test/browser_test_message_pump_android.h" 22 #include "content/public/test/nested_message_pump_android.h"
23 #endif 23 #endif
24 24
25 #if defined(OS_WIN) 25 #if defined(OS_WIN)
26 #include "content/public/app/startup_helper_win.h" 26 #include "content/public/app/startup_helper_win.h"
27 #include "sandbox/win/src/sandbox_types.h" 27 #include "sandbox/win/src/sandbox_types.h"
28 #endif // defined(OS_WIN) 28 #endif // defined(OS_WIN)
29 29
30 namespace content { 30 namespace content {
31 31
32 class ContentShellTestSuiteInitializer 32 class ContentShellTestSuiteInitializer
(...skipping 17 matching lines...) Expand all
50 50
51 private: 51 private:
52 scoped_ptr<ShellContentClient> content_client_; 52 scoped_ptr<ShellContentClient> content_client_;
53 scoped_ptr<ShellContentBrowserClient> browser_content_client_; 53 scoped_ptr<ShellContentBrowserClient> browser_content_client_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(ContentShellTestSuiteInitializer); 55 DISALLOW_COPY_AND_ASSIGN(ContentShellTestSuiteInitializer);
56 }; 56 };
57 57
58 #if defined(OS_ANDROID) 58 #if defined(OS_ANDROID)
59 base::MessagePump* CreateMessagePumpForUI() { 59 base::MessagePump* CreateMessagePumpForUI() {
60 return new BrowserTestMessagePumpAndroid(); 60 return new NestedMessagePumpAndroid();
61 }; 61 };
62 #endif 62 #endif
63 63
64 class ContentBrowserTestSuite : public ContentTestSuiteBase { 64 class ContentBrowserTestSuite : public ContentTestSuiteBase {
65 public: 65 public:
66 ContentBrowserTestSuite(int argc, char** argv) 66 ContentBrowserTestSuite(int argc, char** argv)
67 : ContentTestSuiteBase(argc, argv) { 67 : ContentTestSuiteBase(argc, argv) {
68 } 68 }
69 virtual ~ContentBrowserTestSuite() { 69 virtual ~ContentBrowserTestSuite() {
70 } 70 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 private: 126 private:
127 DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate); 127 DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate);
128 }; 128 };
129 129
130 } // namespace content 130 } // namespace content
131 131
132 int main(int argc, char** argv) { 132 int main(int argc, char** argv) {
133 content::ContentTestLauncherDelegate launcher_delegate; 133 content::ContentTestLauncherDelegate launcher_delegate;
134 return LaunchTests(&launcher_delegate, argc, argv); 134 return LaunchTests(&launcher_delegate, argc, argv);
135 } 135 }
OLDNEW
« no previous file with comments | « content/test/browser_test_message_pump_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698