OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/update_client/ping_manager.h" | 5 #include "components/update_client/ping_manager.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/version.h" | 13 #include "base/version.h" |
14 #include "components/update_client/crx_update_item.h" | 14 #include "components/update_client/crx_update_item.h" |
15 #include "components/update_client/test_configurator.h" | 15 #include "components/update_client/test_configurator.h" |
16 #include "components/update_client/url_request_post_interceptor.h" | 16 #include "components/update_client/url_request_post_interceptor.h" |
17 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using std::string; | 20 using std::string; |
21 | 21 |
22 namespace update_client { | 22 namespace update_client { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 } | 191 } |
192 | 192 |
193 { | 193 { |
194 // Tests that the default for |requires_network_encryption| is true. | 194 // Tests that the default for |requires_network_encryption| is true. |
195 CrxUpdateItem item; | 195 CrxUpdateItem item; |
196 EXPECT_FALSE(ping_manager_->SendPing(&item)); | 196 EXPECT_FALSE(ping_manager_->SendPing(&item)); |
197 } | 197 } |
198 } | 198 } |
199 | 199 |
200 } // namespace update_client | 200 } // namespace update_client |
OLD | NEW |