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

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

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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
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>
8
7 #include <utility> 9 #include <utility>
8 10
9 #include "base/time/time.h" 11 #include "base/time/time.h"
10 #include "mojo/application/public/cpp/application_impl.h" 12 #include "mojo/application/public/cpp/application_impl.h"
11 #include "mojo/services/test_service/test_request_tracker.mojom.h" 13 #include "mojo/services/test_service/test_request_tracker.mojom.h"
12 #include "mojo/services/test_service/tracked_service.h" 14 #include "mojo/services/test_service/tracked_service.h"
13 15
14 namespace mojo { 16 namespace mojo {
15 namespace test { 17 namespace test {
16 18
(...skipping 13 matching lines...) Expand all
30 } 32 }
31 33
32 void TestTimeServiceImpl::GetPartyTime( 34 void TestTimeServiceImpl::GetPartyTime(
33 const mojo::Callback<void(int64_t)>& callback) { 35 const mojo::Callback<void(int64_t)>& callback) {
34 if (tracking_) 36 if (tracking_)
35 tracking_->RecordNewRequest(); 37 tracking_->RecordNewRequest();
36 base::Time frozen_time(base::Time::UnixEpoch() 38 base::Time frozen_time(base::Time::UnixEpoch()
37 + base::TimeDelta::FromDays(10957) 39 + base::TimeDelta::FromDays(10957)
38 + base::TimeDelta::FromHours(7) 40 + base::TimeDelta::FromHours(7)
39 + base::TimeDelta::FromMinutes(59)); 41 + base::TimeDelta::FromMinutes(59));
40 int64 time(frozen_time.ToInternalValue()); 42 int64_t time(frozen_time.ToInternalValue());
41 callback.Run(time); 43 callback.Run(time);
42 } 44 }
43 45
44 } // namespace test 46 } // namespace test
45 } // namespace mojo 47 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/test_service/test_time_service_impl.h ('k') | mojo/services/test_service/tracked_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698