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

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

Issue 1102103002: Move the unit tests files side-by-side with the corresponding .cc files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments from waffles Created 5 years, 8 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 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/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/version.h" 9 #include "base/version.h"
10 #include "components/update_client/crx_update_item.h" 10 #include "components/update_client/crx_update_item.h"
11 #include "components/update_client/ping_manager.h" 11 #include "components/update_client/ping_manager.h"
12 #include "components/update_client/test/test_configurator.h" 12 #include "components/update_client/test_configurator.h"
13 #include "components/update_client/test/url_request_post_interceptor.h" 13 #include "components/update_client/url_request_post_interceptor.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 std::string; 17 using std::string;
18 18
19 namespace update_client { 19 namespace update_client {
20 20
21 class ComponentUpdaterPingManagerTest : public testing::Test { 21 class ComponentUpdaterPingManagerTest : public testing::Test {
22 public: 22 public:
23 ComponentUpdaterPingManagerTest(); 23 ComponentUpdaterPingManagerTest();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 "errorcode=\"-1\" url=\"http://host1/path1\" downloaded=\"123\" " 169 "errorcode=\"-1\" url=\"http://host1/path1\" downloaded=\"123\" "
170 "total=\"456\" download_time_ms=\"987\"/>" 170 "total=\"456\" download_time_ms=\"987\"/>"
171 "<event eventtype=\"14\" eventresult=\"1\" downloader=\"bits\" " 171 "<event eventtype=\"14\" eventresult=\"1\" downloader=\"bits\" "
172 "url=\"http://host2/path2\" downloaded=\"1230\" total=\"4560\" " 172 "url=\"http://host2/path2\" downloaded=\"1230\" total=\"4560\" "
173 "download_time_ms=\"9870\"/></app>")) 173 "download_time_ms=\"9870\"/></app>"))
174 << interceptor->GetRequestsAsString(); 174 << interceptor->GetRequestsAsString();
175 interceptor->Reset(); 175 interceptor->Reset();
176 } 176 }
177 177
178 } // namespace update_client 178 } // namespace update_client
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698