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 <map> | 5 #include <map> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/macros.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
12 #include "base/test/test_mock_time_task_runner.h" | 13 #include "base/test/test_mock_time_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
14 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
16 #include "base/values.h" | 17 #include "base/values.h" |
17 #include "chrome/browser/chromeos/policy/remote_commands/device_command_screensh
ot_job.h" | 18 #include "chrome/browser/chromeos/policy/remote_commands/device_command_screensh
ot_job.h" |
18 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/test/test_browser_thread_bundle.h" | 20 #include "content/public/test/test_browser_thread_bundle.h" |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 base::Bind(&DeviceCommandScreenshotTest::VerifyResults, | 308 base::Bind(&DeviceCommandScreenshotTest::VerifyResults, |
308 base::Unretained(this), base::Unretained(job.get()), | 309 base::Unretained(this), base::Unretained(job.get()), |
309 RemoteCommandJob::FAILED, | 310 RemoteCommandJob::FAILED, |
310 CreatePayloadFromResultCode( | 311 CreatePayloadFromResultCode( |
311 DeviceCommandScreenshotJob::FAILURE_AUTHENTICATION))); | 312 DeviceCommandScreenshotJob::FAILURE_AUTHENTICATION))); |
312 EXPECT_TRUE(success); | 313 EXPECT_TRUE(success); |
313 run_loop_.Run(); | 314 run_loop_.Run(); |
314 } | 315 } |
315 | 316 |
316 } // namespace policy | 317 } // namespace policy |
OLD | NEW |