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