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

Side by Side Diff: chrome/browser/component_updater/test/component_updater_service_unittest.h

Issue 508473002: Componentize component_updater: Move URLRequestPrepackagedInterceptor from content/ to net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 6 years, 4 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 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITTEST _H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITTEST _H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITTEST _H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITTEST _H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/component_updater/test/test_configurator.h" 14 #include "chrome/browser/component_updater/test/test_configurator.h"
15 #include "chrome/browser/component_updater/test/url_request_post_interceptor.h" 15 #include "chrome/browser/component_updater/test/url_request_post_interceptor.h"
16 #include "components/component_updater/component_updater_service.h" 16 #include "components/component_updater/component_updater_service.h"
17 #include "content/public/test/test_browser_thread_bundle.h" 17 #include "content/public/test/test_browser_thread_bundle.h"
Sorin Jianu 2014/08/26 20:32:52 is there a plan to move the thread bundle too?
tommycli 2014/08/26 21:06:58 If and when we move the CUS unittest, then yes. wa
18 #include "content/test/net/url_request_prepackaged_interceptor.h" 18 #include "net/url_request/url_request_prepackaged_interceptor.h"
19 #include "net/url_request/url_request_test_util.h" 19 #include "net/url_request/url_request_test_util.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 namespace component_updater { 23 namespace component_updater {
24 24
25 class TestInstaller; 25 class TestInstaller;
26 26
27 // Intercepts HTTP GET requests sent to "localhost". 27 // Intercepts HTTP GET requests sent to "localhost".
28 typedef content::URLLocalHostRequestPrepackagedInterceptor GetInterceptor; 28 typedef net::URLLocalHostRequestPrepackagedInterceptor GetInterceptor;
29 29
30 // Intercepts HTTP POST requests sent to "localhost2". 30 // Intercepts HTTP POST requests sent to "localhost2".
31 class InterceptorFactory : public URLRequestPostInterceptorFactory { 31 class InterceptorFactory : public URLRequestPostInterceptorFactory {
32 public: 32 public:
33 InterceptorFactory(); 33 InterceptorFactory();
34 ~InterceptorFactory(); 34 ~InterceptorFactory();
35 35
36 URLRequestPostInterceptor* CreateInterceptor(); 36 URLRequestPostInterceptor* CreateInterceptor();
37 37
38 private: 38 private:
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 class OnDemandTester { 126 class OnDemandTester {
127 public: 127 public:
128 static ComponentUpdateService::Status OnDemand( 128 static ComponentUpdateService::Status OnDemand(
129 ComponentUpdateService* cus, 129 ComponentUpdateService* cus,
130 const std::string& component_id); 130 const std::string& component_id);
131 }; 131 };
132 132
133 } // namespace component_updater 133 } // namespace component_updater
134 134
135 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITT EST_H_ 135 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITT EST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698