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

Unified Diff: chromecast/app/cast_test_launcher.cc

Issue 2617713002: [WIP] Add DCHECK for mojo::edk::Init().
Patch Set: test Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/app/cast_test_launcher.h ('k') | chromecast/app/cast_unittests_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/app/cast_test_launcher.cc
diff --git a/chromecast/app/cast_test_launcher.cc b/chromecast/app/cast_test_launcher.cc
index e81e067d62f193c7e928683ecdce88e44d36f3de..67f8be4f487ce2695fd00522518948310ab23480 100644
--- a/chromecast/app/cast_test_launcher.cc
+++ b/chromecast/app/cast_test_launcher.cc
@@ -9,7 +9,6 @@
#include "chromecast/base/cast_paths.h"
#include "content/public/test/test_launcher.h"
#include "ipc/ipc_channel.h"
-#include "mojo/edk/embedder/embedder.h"
namespace chromecast {
namespace shell {
@@ -38,14 +37,12 @@ class CastTestLauncherDelegate : public content::TestLauncherDelegate {
DISALLOW_COPY_AND_ASSIGN(CastTestLauncherDelegate);
};
-} // namespace shell
-} // namespace chromecast
-
-int main(int argc, char** argv) {
+int LaunchTests(int argc, char* argv[]) {
int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2);
chromecast::shell::CastTestLauncherDelegate launcher_delegate;
chromecast::RegisterPathProvider();
- mojo::edk::SetMaxMessageSize(IPC::Channel::kMaximumMessageSize);
- mojo::edk::Init();
return content::LaunchTests(&launcher_delegate, default_jobs, argc, argv);
}
+
+} // namespace shell
+} // namespace chromecast
« no previous file with comments | « chromecast/app/cast_test_launcher.h ('k') | chromecast/app/cast_unittests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698