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

Unified Diff: examples/apptest/example_apptest.cc

Issue 1990603002: Make ApplicationTestBase not use ApplicationImpl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: delete ApplicationImpl::WaitForInitialize() Created 4 years, 7 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 | « no previous file | mojo/file_utils/file_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/apptest/example_apptest.cc
diff --git a/examples/apptest/example_apptest.cc b/examples/apptest/example_apptest.cc
index 2de4515c7cfd5816c43b2a4d1722c225d9bd1ec2..30847b92a06b9772ac3ffd2e6b58a6adaf2748fe 100644
--- a/examples/apptest/example_apptest.cc
+++ b/examples/apptest/example_apptest.cc
@@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <algorithm>
+
#include "examples/apptest/example_service.mojom.h"
-#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/public/cpp/application/application_test_base.h"
#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/bindings/callback.h"
@@ -24,7 +25,7 @@ class ExampleApplicationTest : public test::ApplicationTestBase {
void SetUp() override {
ApplicationTestBase::SetUp();
- ConnectToService(application_impl()->shell(), "mojo:example_service",
+ ConnectToService(shell(), "mojo:example_service",
GetProxy(&example_service_));
}
@@ -45,7 +46,8 @@ TEST_F(ExampleApplicationTest, PingServiceToPong) {
TEST_F(ExampleApplicationTest, CheckCommandLineArg) {
// Ensure the test runner passes along this example command line argument.
- ASSERT_TRUE(application_impl()->HasArg("--example_apptest_arg"));
+ ASSERT_TRUE(std::find(args().begin(), args().end(),
+ "--example_apptest_arg") != args().end());
}
} // namespace
« no previous file with comments | « no previous file | mojo/file_utils/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698