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

Unified Diff: mojo/shell/package_manager/capability_filter_content_handler_unittest.cc

Issue 1675153002: ApplicationImpl->ShellConnection, mojom::Application->mojom::ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ci2
Patch Set: . Created 4 years, 10 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 | « mojo/shell/package_manager.h ('k') | mojo/shell/package_manager/content_handler_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/package_manager/capability_filter_content_handler_unittest.cc
diff --git a/mojo/shell/package_manager/capability_filter_content_handler_unittest.cc b/mojo/shell/package_manager/capability_filter_content_handler_unittest.cc
index fe88fe9206694acaef682b29030667d988a8e7c2..924cba34122877bdc4ef1a5c63ec2839ff2704ff 100644
--- a/mojo/shell/package_manager/capability_filter_content_handler_unittest.cc
+++ b/mojo/shell/package_manager/capability_filter_content_handler_unittest.cc
@@ -12,9 +12,9 @@
#include "mojo/shell/capability_filter_test.h"
#include "mojo/shell/fetcher.h"
#include "mojo/shell/package_manager/package_manager_impl.h"
-#include "mojo/shell/public/cpp/application_impl.h"
#include "mojo/shell/public/cpp/interface_factory.h"
#include "mojo/shell/public/cpp/shell_client.h"
+#include "mojo/shell/public/cpp/shell_connection.h"
#include "mojo/shell/public/interfaces/content_handler.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -98,20 +98,19 @@ class TestContentHandler : public ShellClient,
}
// Overridden from mojom::ContentHandler:
- void StartApplication(
- InterfaceRequest<mojom::Application> application,
- URLResponsePtr response,
- const Callback<void()>& destruct_callback) override {
+ void StartApplication(InterfaceRequest<mojom::ShellClient> request,
+ URLResponsePtr response,
+ const Callback<void()>& destruct_callback) override {
scoped_ptr<ShellClient> delegate(new test::TestApplication);
embedded_apps_.push_back(
- new ApplicationImpl(delegate.get(), std::move(application)));
+ new ShellConnection(delegate.get(), std::move(request)));
embedded_app_delegates_.push_back(std::move(delegate));
destruct_callback.Run();
}
WeakBindingSet<mojom::ContentHandler> bindings_;
ScopedVector<ShellClient> embedded_app_delegates_;
- ScopedVector<ApplicationImpl> embedded_apps_;
+ ScopedVector<ShellConnection> embedded_apps_;
DISALLOW_COPY_AND_ASSIGN(TestContentHandler);
};
« no previous file with comments | « mojo/shell/package_manager.h ('k') | mojo/shell/package_manager/content_handler_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698