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

Unified Diff: mojo/shell/capability_filter_test.h

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
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/application_package_apptest.cc ('k') | mojo/shell/capability_filter_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/capability_filter_test.h
diff --git a/mojo/shell/capability_filter_test.h b/mojo/shell/capability_filter_test.h
index 459cfe87e77536f38f6efef3aedd6bc61b14a6a3..9052d18244efa36131d0dfea557f34efe7c17d42 100644
--- a/mojo/shell/capability_filter_test.h
+++ b/mojo/shell/capability_filter_test.h
@@ -9,7 +9,8 @@
#include "mojo/shell/application_loader.h"
#include "mojo/shell/application_manager.h"
#include "mojo/shell/capability_filter_unittest.mojom.h"
-#include "mojo/shell/public/cpp/application_delegate.h"
+#include "mojo/shell/public/cpp/application_impl.h"
+#include "mojo/shell/public/cpp/shell_client.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
@@ -21,30 +22,30 @@ class ConnectionValidator;
// This class models an application who will use the shell to interact with a
// system service. The shell may limit this application's visibility of the full
// set of interfaces exposed by that service.
-class TestApplication : public ApplicationDelegate {
+class TestApplication : public ShellClient {
public:
TestApplication();
~TestApplication() override;
private:
- // Overridden from ApplicationDelegate:
+ // Overridden from ShellClient:
void Initialize(Shell* shell, const std::string& url, uint32_t id) override;
- bool AcceptConnection(ApplicationConnection* connection) override;
+ bool AcceptConnection(Connection* connection) override;
void ConnectionClosed(const std::string& service_url);
Shell* shell_;
std::string url_;
ValidatorPtr validator_;
- scoped_ptr<ApplicationConnection> connection1_;
- scoped_ptr<ApplicationConnection> connection2_;
+ scoped_ptr<Connection> connection1_;
+ scoped_ptr<Connection> connection2_;
DISALLOW_COPY_AND_ASSIGN(TestApplication);
};
class TestLoader : public ApplicationLoader {
public:
- explicit TestLoader(ApplicationDelegate* delegate);
+ explicit TestLoader(ShellClient* delegate);
~TestLoader() override;
private:
@@ -52,7 +53,7 @@ class TestLoader : public ApplicationLoader {
void Load(const GURL& url,
InterfaceRequest<mojom::Application> request) override;
- scoped_ptr<ApplicationDelegate> delegate_;
+ scoped_ptr<ShellClient> delegate_;
scoped_ptr<ApplicationImpl> app_;
DISALLOW_COPY_AND_ASSIGN(TestLoader);
@@ -93,8 +94,8 @@ class CapabilityFilterTest : public testing::Test {
void RunTest();
template<class T>
- scoped_ptr<ApplicationDelegate> CreateApplicationDelegate() {
- return scoped_ptr<ApplicationDelegate>(new T);
+ scoped_ptr<ShellClient> CreateShellClient() {
+ return scoped_ptr<ShellClient>(new T);
}
base::ShadowingAtExitManager at_exit_;
« no previous file with comments | « mojo/shell/application_package_apptest.cc ('k') | mojo/shell/capability_filter_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698