OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/callback.h" | 5 #include "base/callback.h" |
6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/test/test_simple_task_runner.h" | 10 #include "base/test/test_simple_task_runner.h" |
11 #include "chrome/browser/policy/cloud_policy_constants.h" | 11 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
12 #include "chrome/browser/policy/cloud_policy_refresh_scheduler.h" | 12 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" |
13 #include "chrome/browser/policy/mock_cloud_policy_client.h" | 13 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h" |
14 #include "chrome/browser/policy/mock_cloud_policy_store.h" | 14 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h" |
15 #include "chrome/browser/prefs/browser_prefs.h" | 15 #include "chrome/browser/prefs/browser_prefs.h" |
16 #include "policy/policy_constants.h" | 16 #include "policy/policy_constants.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.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 using testing::DoAll; | 22 using testing::DoAll; |
23 using testing::Mock; | 23 using testing::Mock; |
24 using testing::Return; | 24 using testing::Return; |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 EXPECT_EQ(base::TimeDelta(), GetLastDelay()); | 285 EXPECT_EQ(base::TimeDelta(), GetLastDelay()); |
286 EXPECT_TRUE(task_runner_->GetPendingTasks().empty()); | 286 EXPECT_TRUE(task_runner_->GetPendingTasks().empty()); |
287 } | 287 } |
288 } | 288 } |
289 | 289 |
290 INSTANTIATE_TEST_CASE_P(CloudPolicyRefreshSchedulerClientErrorTest, | 290 INSTANTIATE_TEST_CASE_P(CloudPolicyRefreshSchedulerClientErrorTest, |
291 CloudPolicyRefreshSchedulerClientErrorTest, | 291 CloudPolicyRefreshSchedulerClientErrorTest, |
292 testing::ValuesIn(kClientErrorTestCases)); | 292 testing::ValuesIn(kClientErrorTestCases)); |
293 | 293 |
294 } // namespace policy | 294 } // namespace policy |
OLD | NEW |