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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_apptest.cc

Issue 1919313002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 3. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « services/ui/view_manager/view_manager_app.cc ('k') | shell/android/android_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/url_response_disk_cache/url_response_disk_cache_apptest.cc
diff --git a/services/url_response_disk_cache/url_response_disk_cache_apptest.cc b/services/url_response_disk_cache/url_response_disk_cache_apptest.cc
index 765d070499f47be527437ca4c934933a3b2c8f87..adf77633a89a38b6b576c0744b793c0129c87be7 100644
--- a/services/url_response_disk_cache/url_response_disk_cache_apptest.cc
+++ b/services/url_response_disk_cache/url_response_disk_cache_apptest.cc
@@ -8,6 +8,7 @@
#include "base/strings/stringprintf.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/system/data_pipe.h"
#include "mojo/services/network/interfaces/url_loader.mojom.h"
#include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cache.mojom.h"
@@ -23,9 +24,10 @@ class URLResponseDiskCacheAppTest : public mojo::test::ApplicationTestBase {
~URLResponseDiskCacheAppTest() override {}
void SetUp() override {
- mojo::test::ApplicationTestBase::SetUp();
- application_impl()->ConnectToServiceDeprecated(
- "mojo:url_response_disk_cache", &url_response_disk_cache_);
+ test::ApplicationTestBase::SetUp();
+ ConnectToService(application_impl()->shell(),
+ "mojo:url_response_disk_cache",
+ GetProxy(&url_response_disk_cache_));
}
protected:
« no previous file with comments | « services/ui/view_manager/view_manager_app.cc ('k') | shell/android/android_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698