| 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 <memory> | 5 #include <memory> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 | 1293 |
| 1294 class ErrorPageOfflineTest : public ErrorPageTest { | 1294 class ErrorPageOfflineTest : public ErrorPageTest { |
| 1295 protected: | 1295 protected: |
| 1296 | 1296 |
| 1297 void SetUpInProcessBrowserTestFixture() override { | 1297 void SetUpInProcessBrowserTestFixture() override { |
| 1298 #if defined(OS_CHROMEOS) | 1298 #if defined(OS_CHROMEOS) |
| 1299 if (enroll_) { | 1299 if (enroll_) { |
| 1300 // Set up fake install attributes. | 1300 // Set up fake install attributes. |
| 1301 std::unique_ptr<chromeos::StubInstallAttributes> attributes = | 1301 std::unique_ptr<chromeos::StubInstallAttributes> attributes = |
| 1302 base::MakeUnique<chromeos::StubInstallAttributes>(); | 1302 base::MakeUnique<chromeos::StubInstallAttributes>(); |
| 1303 attributes->SetEnterprise("example.com", "fake-id"); | 1303 attributes->SetCloudManaged("example.com", "fake-id"); |
| 1304 policy::BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting( | 1304 policy::BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting( |
| 1305 attributes.release()); | 1305 attributes.release()); |
| 1306 } | 1306 } |
| 1307 #endif | 1307 #endif |
| 1308 | 1308 |
| 1309 // Sets up a mock policy provider for user and device policies. | 1309 // Sets up a mock policy provider for user and device policies. |
| 1310 EXPECT_CALL(policy_provider_, IsInitializationComplete(testing::_)) | 1310 EXPECT_CALL(policy_provider_, IsInitializationComplete(testing::_)) |
| 1311 .WillRepeatedly(testing::Return(true)); | 1311 .WillRepeatedly(testing::Return(true)); |
| 1312 | 1312 |
| 1313 policy::PolicyMap policy_map; | 1313 policy::PolicyMap policy_map; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 Http09WeirdPortEnabled) { | 1530 Http09WeirdPortEnabled) { |
| 1531 const char kHttp09Response[] = "JumboShrimp"; | 1531 const char kHttp09Response[] = "JumboShrimp"; |
| 1532 ASSERT_TRUE(embedded_test_server()->Start()); | 1532 ASSERT_TRUE(embedded_test_server()->Start()); |
| 1533 ui_test_utils::NavigateToURL( | 1533 ui_test_utils::NavigateToURL( |
| 1534 browser(), embedded_test_server()->GetURL(std::string("/echo-raw?") + | 1534 browser(), embedded_test_server()->GetURL(std::string("/echo-raw?") + |
| 1535 kHttp09Response)); | 1535 kHttp09Response)); |
| 1536 EXPECT_TRUE(IsDisplayingText(browser(), kHttp09Response)); | 1536 EXPECT_TRUE(IsDisplayingText(browser(), kHttp09Response)); |
| 1537 } | 1537 } |
| 1538 | 1538 |
| 1539 } // namespace | 1539 } // namespace |
| OLD | NEW |