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

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

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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
« no previous file with comments | « mojo/services/test_service/test_service_impl.cc ('k') | mojo/services/tracing/BUILD.gn » ('j') | 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 "mojo/services/test_service/test_time_service_impl.h" 5 #include "mojo/services/test_service/test_time_service_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "mojo/application/public/cpp/application_impl.h"
13 #include "mojo/services/test_service/test_request_tracker.mojom.h" 12 #include "mojo/services/test_service/test_request_tracker.mojom.h"
14 #include "mojo/services/test_service/tracked_service.h" 13 #include "mojo/services/test_service/tracked_service.h"
14 #include "mojo/shell/public/cpp/application_impl.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace test { 17 namespace test {
18 18
19 TestTimeServiceImpl::TestTimeServiceImpl( 19 TestTimeServiceImpl::TestTimeServiceImpl(
20 ApplicationImpl* app_impl, 20 ApplicationImpl* app_impl,
21 InterfaceRequest<TestTimeService> request) 21 InterfaceRequest<TestTimeService> request)
22 : app_impl_(app_impl), binding_(this, std::move(request)) {} 22 : app_impl_(app_impl), binding_(this, std::move(request)) {}
23 23
24 TestTimeServiceImpl::~TestTimeServiceImpl() { 24 TestTimeServiceImpl::~TestTimeServiceImpl() {
(...skipping 13 matching lines...) Expand all
38 base::Time frozen_time(base::Time::UnixEpoch() 38 base::Time frozen_time(base::Time::UnixEpoch()
39 + base::TimeDelta::FromDays(10957) 39 + base::TimeDelta::FromDays(10957)
40 + base::TimeDelta::FromHours(7) 40 + base::TimeDelta::FromHours(7)
41 + base::TimeDelta::FromMinutes(59)); 41 + base::TimeDelta::FromMinutes(59));
42 int64_t time(frozen_time.ToInternalValue()); 42 int64_t time(frozen_time.ToInternalValue());
43 callback.Run(time); 43 callback.Run(time);
44 } 44 }
45 45
46 } // namespace test 46 } // namespace test
47 } // namespace mojo 47 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/test_service/test_service_impl.cc ('k') | mojo/services/tracing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698