OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/policy/cloud_policy_data_store.h" | 12 #include "chrome/browser/policy/cloud_policy_data_store.h" |
13 #include "chrome/browser/policy/logging_work_scheduler.h" | 13 #include "chrome/browser/policy/logging_work_scheduler.h" |
14 #include "chrome/browser/policy/proto/cloud_policy.pb.h" | 14 #include "chrome/browser/policy/proto/cloud_policy.pb.h" |
15 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 15 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
16 #include "chrome/browser/policy/testing_cloud_policy_subsystem.h" | 16 #include "chrome/browser/policy/testing_cloud_policy_subsystem.h" |
17 #include "chrome/browser/policy/testing_policy_url_fetcher_factory.h" | 17 #include "chrome/browser/policy/testing_policy_url_fetcher_factory.h" |
18 #include "chrome/browser/policy/user_policy_cache.h" | 18 #include "chrome/browser/policy/user_policy_cache.h" |
19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "chrome/test/base/testing_browser_process.h" |
20 #include "chrome/test/base/testing_pref_service.h" | 21 #include "chrome/test/base/testing_pref_service.h" |
21 #include "chrome/test/testing_browser_process.h" | |
22 #include "content/browser/browser_thread.h" | 22 #include "content/browser/browser_thread.h" |
23 #include "content/common/url_fetcher.h" | 23 #include "content/common/url_fetcher.h" |
24 #include "policy/policy_constants.h" | 24 #include "policy/policy_constants.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 namespace policy { | 27 namespace policy { |
28 | 28 |
29 using ::testing::_; | 29 using ::testing::_; |
30 using ::testing::AtMost; | 30 using ::testing::AtMost; |
31 using ::testing::InSequence; | 31 using ::testing::InSequence; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 ExecuteTest(); | 383 ExecuteTest(); |
384 VerifyTest("http://www.youtube.com"); | 384 VerifyTest("http://www.youtube.com"); |
385 } | 385 } |
386 | 386 |
387 INSTANTIATE_TEST_CASE_P( | 387 INSTANTIATE_TEST_CASE_P( |
388 CloudPolicySubsystemPolicyReregisterTestInstance, | 388 CloudPolicySubsystemPolicyReregisterTestInstance, |
389 CloudPolicySubsystemPolicyReregisterTest, | 389 CloudPolicySubsystemPolicyReregisterTest, |
390 testing::Values(401, 403, 410)); | 390 testing::Values(401, 403, 410)); |
391 | 391 |
392 } // policy | 392 } // policy |
OLD | NEW |