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

Unified Diff: mojo/services/test_service/test_service_impl.h

Issue 349303006: mojo: add some end-to-end shell tests and a new test sample app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no icu Created 6 years, 6 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/services/test_service/test_service_impl.h
diff --git a/mojo/services/test_service/test_service_impl.h b/mojo/services/test_service/test_service_impl.h
index c8e272ac8c040d879a0174d17359a0206d72c606..c921599c30d43808e566cdb24df268a75cbb81c8 100644
--- a/mojo/services/test_service/test_service_impl.h
+++ b/mojo/services/test_service/test_service_impl.h
@@ -5,6 +5,7 @@
#ifndef MOJO_SERVICES_TEST_SERVICE_TEST_SERVICE_IMPL_H_
#define MOJO_SERVICES_TEST_SERVICE_TEST_SERVICE_IMPL_H_
+#include "base/memory/scoped_ptr.h"
#include "mojo/public/cpp/system/macros.h"
#include "mojo/services/test_service/test_service.mojom.h"
@@ -12,21 +13,30 @@ namespace mojo {
class ApplicationConnection;
namespace test {
+class TestRequestTrackerClientImpl;
class TestServiceApplication;
-class TestServiceImpl : public InterfaceImpl<ITestService> {
+class TestServiceImpl : public InterfaceImpl<TestService> {
public:
- explicit TestServiceImpl(ApplicationConnection* connection,
- TestServiceApplication* application);
+ TestServiceImpl(ApplicationConnection* connection,
+ TestServiceApplication* application);
virtual ~TestServiceImpl();
- // |ITestService| methods:
+ // |TestService| methods:
virtual void OnConnectionEstablished() MOJO_OVERRIDE;
virtual void OnConnectionError() MOJO_OVERRIDE;
virtual void Ping(const mojo::Callback<void()>& callback) MOJO_OVERRIDE;
+ virtual void ConnectToAppAndGetTime(
+ const mojo::String& app_url,
+ const mojo::Callback<void(int64_t)>& callback) MOJO_OVERRIDE;
+ virtual void StartTrackingRequests(const mojo::Callback<void()>& callback)
+ MOJO_OVERRIDE;
private:
TestServiceApplication* const application_;
+ ApplicationConnection* const connection_;
+ TestTimeServicePtr time_service_;
+ scoped_ptr<TestRequestTrackerClientImpl> tracking_;
MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceImpl);
};
« no previous file with comments | « mojo/services/test_service/test_service_application.cc ('k') | mojo/services/test_service/test_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698