| 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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/test/base/testing_pref_service.h" | 21 #include "chrome/test/base/testing_pref_service.h" |
| 22 #include "content/test/test_browser_thread.h" | 22 #include "content/test/test_browser_thread.h" |
| 23 #include "policy/policy_constants.h" | 23 #include "policy/policy_constants.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 25 |
| 26 namespace policy { | 26 namespace policy { |
| 27 | 27 |
| 28 using ::testing::_; | 28 using ::testing::_; |
| 29 using ::testing::AtMost; | 29 using ::testing::AtMost; |
| 30 using ::testing::InSequence; | 30 using ::testing::InSequence; |
| 31 using content::BrowserThread; |
| 31 | 32 |
| 32 namespace em = enterprise_management; | 33 namespace em = enterprise_management; |
| 33 | 34 |
| 34 namespace { | 35 namespace { |
| 35 | 36 |
| 36 const char kGaiaAuthHeader[] = "GoogleLogin auth=secret123"; | 37 const char kGaiaAuthHeader[] = "GoogleLogin auth=secret123"; |
| 37 const char kDMAuthHeader[] = "GoogleDMToken token=token123456"; | 38 const char kDMAuthHeader[] = "GoogleDMToken token=token123456"; |
| 38 const char kDMToken[] = "token123456"; | 39 const char kDMToken[] = "token123456"; |
| 39 | 40 |
| 40 const char kDeviceManagementUrl[] = | 41 const char kDeviceManagementUrl[] = |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 ExecuteTest(); | 381 ExecuteTest(); |
| 381 VerifyTest("http://www.youtube.com"); | 382 VerifyTest("http://www.youtube.com"); |
| 382 } | 383 } |
| 383 | 384 |
| 384 INSTANTIATE_TEST_CASE_P( | 385 INSTANTIATE_TEST_CASE_P( |
| 385 CloudPolicySubsystemPolicyReregisterTestInstance, | 386 CloudPolicySubsystemPolicyReregisterTestInstance, |
| 386 CloudPolicySubsystemPolicyReregisterTest, | 387 CloudPolicySubsystemPolicyReregisterTest, |
| 387 testing::Values(401, 403, 410)); | 388 testing::Values(401, 403, 410)); |
| 388 | 389 |
| 389 } // policy | 390 } // policy |
| OLD | NEW |