Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: components/update_client/update_checker_unittest.cc

Issue 2656713009: Merged to M57. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/threading/thread_task_runner_handle.h" 18 #include "base/threading/thread_task_runner_handle.h"
19 #include "base/version.h" 19 #include "base/version.h"
20 #include "build/build_config.h"
20 #include "components/prefs/testing_pref_service.h" 21 #include "components/prefs/testing_pref_service.h"
21 #include "components/update_client/crx_update_item.h" 22 #include "components/update_client/crx_update_item.h"
22 #include "components/update_client/persisted_data.h" 23 #include "components/update_client/persisted_data.h"
23 #include "components/update_client/test_configurator.h" 24 #include "components/update_client/test_configurator.h"
24 #include "components/update_client/url_request_post_interceptor.h" 25 #include "components/update_client/url_request_post_interceptor.h"
25 #include "net/url_request/url_request_test_util.h" 26 #include "net/url_request/url_request_test_util.h"
26 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
27 #include "url/gurl.h" 28 #include "url/gurl.h"
28 29
29 using std::string; 30 using std::string;
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 base::Bind(&UpdateCheckerTest::UpdateCheckComplete, 507 base::Bind(&UpdateCheckerTest::UpdateCheckComplete,
507 base::Unretained(this))); 508 base::Unretained(this)));
508 RunThreads(); 509 RunThreads();
509 EXPECT_NE(string::npos, post_interceptor_->GetRequests()[3].find( 510 EXPECT_NE(string::npos, post_interceptor_->GetRequests()[3].find(
510 std::string("<app appid=\"") + kUpdateItemId + 511 std::string("<app appid=\"") + kUpdateItemId +
511 "\" version=\"0.9\">" 512 "\" version=\"0.9\">"
512 "<updatecheck/>")); 513 "<updatecheck/>"));
513 } 514 }
514 515
515 } // namespace update_client 516 } // namespace update_client
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/component_updater_utils.cc ('k') | components/update_client/updater_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698