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

Unified Diff: chrome/test/sync/test_http_bridge_factory.h

Issue 6523032: Even more test cleanup. Some fixes to non-test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/sync/test_http_bridge_factory.h
diff --git a/chrome/test/sync/test_http_bridge_factory.h b/chrome/test/sync/test_http_bridge_factory.h
index 9f8271120096989a0cf7a73d99453e2c1f8c3323..6788daafaecf417bbfa8446f5be06479f414e6f4 100644
--- a/chrome/test/sync/test_http_bridge_factory.h
+++ b/chrome/test/sync/test_http_bridge_factory.h
@@ -30,41 +30,30 @@ class TestHttpBridge : public sync_api::HttpPostProviderInterface {
// Returns true if the URL request succeeded. If the request failed,
// os_error() may be non-zero and hence contain more information.
- virtual bool MakeSynchronousPost(int* os_error_code, int* response_code) {
- return false;
- }
+ virtual bool MakeSynchronousPost(int* os_error_code, int* response_code);
// Get the length of the content returned in the HTTP response.
// This does not count the trailing null-terminating character returned
// by GetResponseContent, so it is analogous to calling string.length.
- virtual int GetResponseContentLength() const {
- return 0;
- }
+ virtual int GetResponseContentLength() const;
// Get the content returned in the HTTP response.
// This is a null terminated string of characters.
// Value should be copied.
- virtual const char* GetResponseContent() const {
- return 0;
- }
+ virtual const char* GetResponseContent() const;
- virtual const std::string GetResponseHeaderValue(const std::string &) const {
- return std::string();
- }
+ virtual const std::string GetResponseHeaderValue(const std::string &) const;
Nico 2011/02/15 21:25:37 i guess this should be std::string&?
Elliot Glaysher 2011/02/15 22:09:51 Can't; this function is defined by the protobufs a
};
class TestHttpBridgeFactory : public sync_api::HttpPostProviderFactory {
public:
// Override everything to do nothing.
- TestHttpBridgeFactory() {}
- ~TestHttpBridgeFactory() {}
+ TestHttpBridgeFactory();
+ virtual ~TestHttpBridgeFactory();
- virtual sync_api::HttpPostProviderInterface* Create() {
- return new TestHttpBridge();
- }
- virtual void Destroy(sync_api::HttpPostProviderInterface* http) {
- delete http;
- }
+ // sync_api::HttpPostProviderFactory:
+ virtual sync_api::HttpPostProviderInterface* Create();
+ virtual void Destroy(sync_api::HttpPostProviderInterface* http);
};
} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698