OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/policy/core/common/remote_commands/testing_remote_commands_
server.h" | 5 #include "components/policy/core/common/remote_commands/testing_remote_commands_
server.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "base/time/default_tick_clock.h" | 15 #include "base/time/default_tick_clock.h" |
16 #include "base/time/tick_clock.h" | 16 #include "base/time/tick_clock.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace em = enterprise_management; | 20 namespace em = enterprise_management; |
21 | 21 |
22 namespace policy { | 22 namespace policy { |
23 | 23 |
24 struct TestingRemoteCommandsServer::RemoteCommandWithCallback { | 24 struct TestingRemoteCommandsServer::RemoteCommandWithCallback { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 } | 147 } |
148 | 148 |
149 void TestingRemoteCommandsServer::ReportJobResult( | 149 void TestingRemoteCommandsServer::ReportJobResult( |
150 const ResultReportedCallback& reported_callback, | 150 const ResultReportedCallback& reported_callback, |
151 const em::RemoteCommandResult& job_result) const { | 151 const em::RemoteCommandResult& job_result) const { |
152 DCHECK(thread_checker_.CalledOnValidThread()); | 152 DCHECK(thread_checker_.CalledOnValidThread()); |
153 reported_callback.Run(job_result); | 153 reported_callback.Run(job_result); |
154 } | 154 } |
155 | 155 |
156 } // namespace policy | 156 } // namespace policy |
OLD | NEW |