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

Side by Side Diff: components/component_updater/test/component_updater_ping_manager_unittest.cc

Issue 493953002: Componentize component_updater: Move a bunch of tests to component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/run_loop.h" 6 #include "base/run_loop.h"
7 #include "base/version.h" 7 #include "base/version.h"
8 #include "chrome/browser/component_updater/test/component_updater_service_unitte st.h"
9 #include "chrome/browser/component_updater/test/url_request_post_interceptor.h"
10 #include "components/component_updater/component_updater_ping_manager.h" 8 #include "components/component_updater/component_updater_ping_manager.h"
11 #include "components/component_updater/crx_update_item.h" 9 #include "components/component_updater/crx_update_item.h"
10 #include "components/component_updater/test/test_configurator.h"
11 #include "components/component_updater/test/url_request_post_interceptor.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/test/test_browser_thread_bundle.h" 13 #include "content/public/test/test_browser_thread_bundle.h"
14 #include "net/url_request/url_request_test_util.h" 14 #include "net/url_request/url_request_test_util.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 namespace component_updater { 19 namespace component_updater {
20 20
21 class ComponentUpdaterPingManagerTest : public testing::Test { 21 class ComponentUpdaterPingManagerTest : public testing::Test {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 "errorcode=\"-1\" url=\"http://host1/path1\" downloaded=\"123\" " 168 "errorcode=\"-1\" url=\"http://host1/path1\" downloaded=\"123\" "
169 "total=\"456\" download_time_ms=\"987\"/>" 169 "total=\"456\" download_time_ms=\"987\"/>"
170 "<event eventtype=\"14\" eventresult=\"1\" downloader=\"bits\" " 170 "<event eventtype=\"14\" eventresult=\"1\" downloader=\"bits\" "
171 "url=\"http://host2/path2\" downloaded=\"1230\" total=\"4560\" " 171 "url=\"http://host2/path2\" downloaded=\"1230\" total=\"4560\" "
172 "download_time_ms=\"9870\"/></app>")) 172 "download_time_ms=\"9870\"/></app>"))
173 << interceptor->GetRequestsAsString(); 173 << interceptor->GetRequestsAsString();
174 interceptor->Reset(); 174 interceptor->Reset();
175 } 175 }
176 176
177 } // namespace component_updater 177 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698