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

Unified Diff: mojo/shell/tests/connect/connect_test_app.cc

Issue 1783303002: Revert of Capability Classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@45class
Patch Set: Created 4 years, 9 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
Index: mojo/shell/tests/connect/connect_test_app.cc
diff --git a/mojo/shell/tests/connect/connect_test_app.cc b/mojo/shell/tests/connect/connect_test_app.cc
index abf51dcad5030c459a6623b21d88662d555190cb..86ae2351da627b625431e1abd80f0b101f141872 100644
--- a/mojo/shell/tests/connect/connect_test_app.cc
+++ b/mojo/shell/tests/connect/connect_test_app.cc
@@ -17,13 +17,6 @@
namespace mojo {
namespace shell {
-namespace {
-void ReceiveString(std::string* string, base::RunLoop* loop,
- const std::string& response) {
- *string = response;
- loop->Quit();
-}
-}
using GetTitleCallback = test::mojom::ConnectTestService::GetTitleCallback;
@@ -126,32 +119,6 @@
run_loop.Run();
}
}
- void ConnectToClassInterface(
- const ConnectToClassInterfaceCallback& callback) override {
- scoped_ptr<Connection> connection =
- connector_->Connect("mojo:connect_test_class_app");
- test::mojom::ClassInterfacePtr class_interface;
- connection->GetInterface(&class_interface);
- std::string ping_response;
- {
- base::RunLoop loop;
- class_interface->Ping(base::Bind(&ReceiveString, &ping_response, &loop));
- base::MessageLoop::ScopedNestableTaskAllower allow(
- base::MessageLoop::current());
- loop.Run();
- }
- test::mojom::ConnectTestServicePtr service;
- connection->GetInterface(&service);
- std::string title_response;
- {
- base::RunLoop loop;
- service->GetTitle(base::Bind(&ReceiveString, &title_response, &loop));
- base::MessageLoop::ScopedNestableTaskAllower allow(
- base::MessageLoop::current());
- loop.Run();
- }
- callback.Run(ping_response, title_response);
- }
// test::mojom::BlockedInterface:
void GetTitleBlocked(const GetTitleBlockedCallback& callback) override {
« no previous file with comments | « mojo/shell/tests/connect/connect_test.mojom ('k') | mojo/shell/tests/connect/connect_test_app_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698