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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_refresh_scheduler_unittest.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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 | Annotate | Revision Log
OLDNEW
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/message_loop.h" 9 #include "base/message_loop/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/cloud_policy_constants.h" 11 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
12 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" 12 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h"
13 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h" 13 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h"
14 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h" 14 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h"
15 #include "policy/policy_constants.h"
16 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
18 17
19 namespace em = enterprise_management; 18 namespace em = enterprise_management;
20 19
21 using testing::Mock; 20 using testing::Mock;
22 21
23 namespace policy { 22 namespace policy {
24 23
25 namespace { 24 namespace {
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 EXPECT_EQ(base::TimeDelta(), GetLastDelay()); 483 EXPECT_EQ(base::TimeDelta(), GetLastDelay());
485 EXPECT_TRUE(task_runner_->GetPendingTasks().empty()); 484 EXPECT_TRUE(task_runner_->GetPendingTasks().empty());
486 } 485 }
487 } 486 }
488 487
489 INSTANTIATE_TEST_CASE_P(CloudPolicyRefreshSchedulerClientErrorTest, 488 INSTANTIATE_TEST_CASE_P(CloudPolicyRefreshSchedulerClientErrorTest,
490 CloudPolicyRefreshSchedulerClientErrorTest, 489 CloudPolicyRefreshSchedulerClientErrorTest,
491 testing::ValuesIn(kClientErrorTestCases)); 490 testing::ValuesIn(kClientErrorTestCases));
492 491
493 } // namespace policy 492 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698