| Index: components/update_client/ping_manager_unittest.cc
|
| diff --git a/components/update_client/ping_manager_unittest.cc b/components/update_client/ping_manager_unittest.cc
|
| index cf1d147cd286c3aee6ebac5fc15f2569ac72cdb5..e25dc94533a4d83acb144d1fe698685f4c304125 100644
|
| --- a/components/update_client/ping_manager_unittest.cc
|
| +++ b/components/update_client/ping_manager_unittest.cc
|
| @@ -177,4 +177,23 @@ TEST_F(ComponentUpdaterPingManagerTest, DISABLED_PingManagerTest) {
|
| interceptor->Reset();
|
| }
|
|
|
| +// Tests that sending the ping fails when the component requires encryption but
|
| +// the ping URL is unsecure.
|
| +TEST_F(ComponentUpdaterPingManagerTest, PingManagerRequiresEncryptionTest) {
|
| + config_->SetPingUrl(GURL("http:\\foo\bar"));
|
| +
|
| + {
|
| + CrxUpdateItem item;
|
| + item.component.requires_network_encryption = true;
|
| +
|
| + EXPECT_FALSE(ping_manager_->SendPing(&item));
|
| + }
|
| +
|
| + {
|
| + // Tests that the default for |requires_network_encryption| is true.
|
| + CrxUpdateItem item;
|
| + EXPECT_FALSE(ping_manager_->SendPing(&item));
|
| + }
|
| +}
|
| +
|
| } // namespace update_client
|
|
|