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

Unified Diff: mojo/edk/test/multiprocess_test_helper_unittest.cc

Issue 728783003: Add infrastructure to run tests on android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 6 years, 1 month 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
Index: mojo/edk/test/multiprocess_test_helper_unittest.cc
diff --git a/mojo/edk/test/multiprocess_test_helper_unittest.cc b/mojo/edk/test/multiprocess_test_helper_unittest.cc
index 2961a74f9a48ffbb265e6792c0f0671597521946..ef8a00bced4576ab96c4b4a08a0ee6601ad147ab 100644
--- a/mojo/edk/test/multiprocess_test_helper_unittest.cc
+++ b/mojo/edk/test/multiprocess_test_helper_unittest.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "build/build_config.h"
#include "mojo/edk/embedder/scoped_platform_handle.h"
+#include "mojo/edk/embedder/test_embedder.h"
#include "mojo/edk/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -40,7 +41,12 @@ bool ReadByte(const embedder::PlatformHandle& handle, char* c) {
return bytes_read == 1;
}
-typedef testing::Test MultiprocessTestHelperTest;
+class MultiprocessTestHelperTest : public testing::Test {
+ public:
+ void SetUp() override { embedder::test::InitWithSimplePlatformSupport(); }
+
+ void TearDown() override { EXPECT_TRUE(embedder::test::Shutdown()); }
+};
TEST_F(MultiprocessTestHelperTest, RunChild) {
MultiprocessTestHelper helper;

Powered by Google App Engine
This is Rietveld 408576698