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

Side by Side Diff: components/policy/core/common/remote_commands/remote_commands_service_unittest.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 years, 7 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 unified diff | Download patch
OLDNEW
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_service. h" 5 #include "components/policy/core/common/remote_commands/remote_commands_service. h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/test/test_mock_time_task_runner.h" 17 #include "base/test/test_mock_time_task_runner.h"
18 #include "base/thread_task_runner_handle.h" 18 #include "base/threading/thread_task_runner_handle.h"
19 #include "base/time/tick_clock.h" 19 #include "base/time/tick_clock.h"
20 #include "components/policy/core/common/cloud/cloud_policy_client.h" 20 #include "components/policy/core/common/cloud/cloud_policy_client.h"
21 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 21 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
22 #include "components/policy/core/common/remote_commands/remote_command_job.h" 22 #include "components/policy/core/common/remote_commands/remote_command_job.h"
23 #include "components/policy/core/common/remote_commands/remote_commands_factory. h" 23 #include "components/policy/core/common/remote_commands/remote_commands_factory. h"
24 #include "components/policy/core/common/remote_commands/remote_commands_queue.h" 24 #include "components/policy/core/common/remote_commands/remote_commands_queue.h"
25 #include "components/policy/core/common/remote_commands/test_remote_command_job. h" 25 #include "components/policy/core/common/remote_commands/test_remote_command_job. h"
26 #include "components/policy/core/common/remote_commands/testing_remote_commands_ server.h" 26 #include "components/policy/core/common/remote_commands/testing_remote_commands_ server.h"
27 #include "net/url_request/url_request_context_getter.h" 27 #include "net/url_request/url_request_context_getter.h"
28 #include "policy/proto/device_management_backend.pb.h" 28 #include "policy/proto/device_management_backend.pb.h"
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 cloud_policy_client_->ExpectFetchCommands(1u, 0u, base::Closure()); 398 cloud_policy_client_->ExpectFetchCommands(1u, 0u, base::Closure());
399 399
400 // No further fetch request is made, but the new issued command should be 400 // No further fetch request is made, but the new issued command should be
401 // fetched and executed. 401 // fetched and executed.
402 FlushAllTasks(); 402 FlushAllTasks();
403 403
404 EXPECT_EQ(0u, server_->NumberOfCommandsPendingResult()); 404 EXPECT_EQ(0u, server_->NumberOfCommandsPendingResult());
405 } 405 }
406 406
407 } // namespace policy 407 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698