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

Side by Side Diff: mojo/services/test_service/test_time_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: ServiceProvider rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_
6 #define MOJO_SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "mojo/public/cpp/system/macros.h"
10 #include "mojo/services/test_service/test_service.mojom.h"
11 #include "mojo/services/test_service/toy_monitoring_service.mojom.h"
12
13 namespace mojo {
14
15 class Application;
16
17 namespace test {
18
19 class MonitoringUploader;
20
21 class TestTimeServiceImpl : public InterfaceImpl<TestTimeService> {
22 public:
23 TestTimeServiceImpl(ApplicationConnection* application);
24 virtual ~TestTimeServiceImpl();
25
26 // |TestTimeService| methods:
27 virtual void GetPartyTime(
28 const mojo::Callback<void(int64_t time_usec)>& callback) MOJO_OVERRIDE;
29 virtual void StartMonitoring(const mojo::Callback<void()>& callback)
30 MOJO_OVERRIDE;
31
32 private:
33 ApplicationConnection* application_;
34 scoped_ptr<MonitoringUploader> monitoring_;
35 MOJO_DISALLOW_COPY_AND_ASSIGN(TestTimeServiceImpl);
36 };
37
38 } // namespace test
39 } // namespace mojo
40
41 #endif // MOJO_SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698