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

Side by Side Diff: services/test_service/test_time_service_impl.cc

Issue 766403002: Move test_service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « services/test_service/test_time_service_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/time/time.h" 5 #include "base/time/time.h"
6 #include "mojo/public/cpp/application/application_connection.h" 6 #include "mojo/public/cpp/application/application_connection.h"
7 #include "mojo/services/test_service/test_request_tracker.mojom.h" 7 #include "services/test_service/test_request_tracker.mojom.h"
8 #include "mojo/services/test_service/test_request_tracker_client_impl.h" 8 #include "services/test_service/test_request_tracker_client_impl.h"
9 #include "mojo/services/test_service/test_time_service_impl.h" 9 #include "services/test_service/test_time_service_impl.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace test { 12 namespace test {
13 13
14 TestTimeServiceImpl::TestTimeServiceImpl( 14 TestTimeServiceImpl::TestTimeServiceImpl(
15 ApplicationConnection* application, 15 ApplicationConnection* application,
16 InterfaceRequest<TestTimeService> request) 16 InterfaceRequest<TestTimeService> request)
17 : application_(application), binding_(this, request.Pass()) { 17 : application_(application), binding_(this, request.Pass()) {
18 } 18 }
19 19
(...skipping 15 matching lines...) Expand all
35 base::Time frozen_time(base::Time::UnixEpoch() 35 base::Time frozen_time(base::Time::UnixEpoch()
36 + base::TimeDelta::FromDays(10957) 36 + base::TimeDelta::FromDays(10957)
37 + base::TimeDelta::FromHours(7) 37 + base::TimeDelta::FromHours(7)
38 + base::TimeDelta::FromMinutes(59)); 38 + base::TimeDelta::FromMinutes(59));
39 int64 time(frozen_time.ToInternalValue()); 39 int64 time(frozen_time.ToInternalValue());
40 callback.Run(time); 40 callback.Run(time);
41 } 41 }
42 42
43 } // namespace test 43 } // namespace test
44 } // namespace mojo 44 } // namespace mojo
OLDNEW
« no previous file with comments | « services/test_service/test_time_service_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698