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

Unified Diff: mojo/services/test_service/test_time_service_impl.cc

Issue 1760383002: Remove some unneeded directories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: , Created 4 years, 10 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/test_service/test_time_service_impl.cc
diff --git a/mojo/services/test_service/test_time_service_impl.cc b/mojo/services/test_service/test_time_service_impl.cc
deleted file mode 100644
index 3074e59b2f13a9934f92a8455f7a8dadded7d621..0000000000000000000000000000000000000000
--- a/mojo/services/test_service/test_time_service_impl.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/services/test_service/test_time_service_impl.h"
-
-#include <stdint.h>
-
-#include <utility>
-
-#include "base/time/time.h"
-#include "mojo/services/test_service/test_request_tracker.mojom.h"
-#include "mojo/services/test_service/tracked_service.h"
-#include "mojo/shell/public/cpp/connector.h"
-
-namespace mojo {
-namespace test {
-
-TestTimeServiceImpl::TestTimeServiceImpl(
- Connector* connector,
- InterfaceRequest<TestTimeService> request)
- : connector_(connector), binding_(this, std::move(request)) {}
-
-TestTimeServiceImpl::~TestTimeServiceImpl() {
-}
-
-void TestTimeServiceImpl::StartTrackingRequests(
- const mojo::Callback<void()>& callback) {
- TestRequestTrackerPtr tracker;
- connector_->ConnectToInterface("mojo:test_request_tracker_app", &tracker);
- tracking_.reset(new TrackedService(std::move(tracker), Name_, callback));
-}
-
-void TestTimeServiceImpl::GetPartyTime(
- const mojo::Callback<void(int64_t)>& callback) {
- if (tracking_)
- tracking_->RecordNewRequest();
- base::Time frozen_time(base::Time::UnixEpoch()
- + base::TimeDelta::FromDays(10957)
- + base::TimeDelta::FromHours(7)
- + base::TimeDelta::FromMinutes(59));
- int64_t time(frozen_time.ToInternalValue());
- callback.Run(time);
-}
-
-} // namespace test
-} // namespace mojo
« 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