| OLD | NEW | 
|    1 // Copyright 2014 The Chromium Authors. All rights reserved. |    1 // Copyright 2014 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/update_checker.h" |    5 #include "components/update_client/update_checker.h" | 
|    6  |    6  | 
|    7 #include <memory> |    7 #include <memory> | 
|    8  |    8  | 
|    9 #include "base/bind.h" |    9 #include "base/bind.h" | 
|   10 #include "base/bind_helpers.h" |   10 #include "base/bind_helpers.h" | 
|   11 #include "base/files/file_util.h" |   11 #include "base/files/file_util.h" | 
|   12 #include "base/macros.h" |   12 #include "base/macros.h" | 
|   13 #include "base/memory/ref_counted.h" |   13 #include "base/memory/ref_counted.h" | 
|   14 #include "base/path_service.h" |   14 #include "base/path_service.h" | 
|   15 #include "base/run_loop.h" |   15 #include "base/run_loop.h" | 
|   16 #include "base/thread_task_runner_handle.h" |   16 #include "base/threading/thread_task_runner_handle.h" | 
|   17 #include "base/version.h" |   17 #include "base/version.h" | 
|   18 #include "components/prefs/testing_pref_service.h" |   18 #include "components/prefs/testing_pref_service.h" | 
|   19 #include "components/update_client/crx_update_item.h" |   19 #include "components/update_client/crx_update_item.h" | 
|   20 #include "components/update_client/persisted_data.h" |   20 #include "components/update_client/persisted_data.h" | 
|   21 #include "components/update_client/test_configurator.h" |   21 #include "components/update_client/test_configurator.h" | 
|   22 #include "components/update_client/url_request_post_interceptor.h" |   22 #include "components/update_client/url_request_post_interceptor.h" | 
|   23 #include "net/url_request/url_request_test_util.h" |   23 #include "net/url_request/url_request_test_util.h" | 
|   24 #include "testing/gtest/include/gtest/gtest.h" |   24 #include "testing/gtest/include/gtest/gtest.h" | 
|   25 #include "url/gurl.h" |   25 #include "url/gurl.h" | 
|   26  |   26  | 
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  408       << post_interceptor_->GetRequestsAsString(); |  408       << post_interceptor_->GetRequestsAsString(); | 
|  409   ASSERT_EQ(2, post_interceptor_->GetCount()) |  409   ASSERT_EQ(2, post_interceptor_->GetCount()) | 
|  410       << post_interceptor_->GetRequestsAsString(); |  410       << post_interceptor_->GetRequestsAsString(); | 
|  411   EXPECT_NE(string::npos, post_interceptor_->GetRequests()[0].find( |  411   EXPECT_NE(string::npos, post_interceptor_->GetRequests()[0].find( | 
|  412                               "<ping rd=\"-2\" ping_freshness=")); |  412                               "<ping rd=\"-2\" ping_freshness=")); | 
|  413   EXPECT_NE(string::npos, post_interceptor_->GetRequests()[1].find( |  413   EXPECT_NE(string::npos, post_interceptor_->GetRequests()[1].find( | 
|  414                               "<ping rd=\"3383\" ping_freshness=")); |  414                               "<ping rd=\"3383\" ping_freshness=")); | 
|  415 } |  415 } | 
|  416  |  416  | 
|  417 }  // namespace update_client |  417 }  // namespace update_client | 
| OLD | NEW |