| 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/remote_commands_queue.h" | 5 #include "components/policy/core/common/remote_commands/remote_commands_queue.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/test/test_mock_time_task_runner.h" | 12 #include "base/test/test_mock_time_task_runner.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "base/time/tick_clock.h" | 14 #include "base/time/tick_clock.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "components/policy/core/common/remote_commands/remote_command_job.h" | 16 #include "components/policy/core/common/remote_commands/remote_command_job.h" |
| 17 #include "components/policy/core/common/remote_commands/test_remote_command_job.
h" | 17 #include "components/policy/core/common/remote_commands/test_remote_command_job.
h" |
| 18 #include "policy/proto/device_management_backend.pb.h" | 18 #include "policy/proto/device_management_backend.pb.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 namespace policy { | 22 namespace policy { |
| 23 | 23 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 Property(&RemoteCommandJob::status, RemoteCommandJob::SUCCEEDED), | 325 Property(&RemoteCommandJob::status, RemoteCommandJob::SUCCEEDED), |
| 326 Property(&RemoteCommandJob::GetResultPayload, | 326 Property(&RemoteCommandJob::GetResultPayload, |
| 327 Pointee(StrEq(kPayload2)))))); | 327 Pointee(StrEq(kPayload2)))))); |
| 328 task_runner_->FastForwardBy(base::TimeDelta::FromSeconds(5)); | 328 task_runner_->FastForwardBy(base::TimeDelta::FromSeconds(5)); |
| 329 Mock::VerifyAndClearExpectations(&observer_); | 329 Mock::VerifyAndClearExpectations(&observer_); |
| 330 | 330 |
| 331 task_runner_->FastForwardUntilNoTasksRemain(); | 331 task_runner_->FastForwardUntilNoTasksRemain(); |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace policy | 334 } // namespace policy |
| OLD | NEW |