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

Side by Side Diff: chrome/browser/sync/test/test_http_bridge_factory.h

Issue 7846007: net: Rename URLRequestStatus::os_error_. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix os_error_code Created 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_
6 #define CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ 6 #define CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/sync/internal_api/http_post_provider_interface.h" 10 #include "chrome/browser/sync/internal_api/http_post_provider_interface.h"
11 #include "chrome/browser/sync/internal_api/http_post_provider_factory.h" 11 #include "chrome/browser/sync/internal_api/http_post_provider_factory.h"
12 12
13 namespace browser_sync { 13 namespace browser_sync {
14 14
15 class TestHttpBridge : public sync_api::HttpPostProviderInterface { 15 class TestHttpBridge : public sync_api::HttpPostProviderInterface {
16 public: 16 public:
17 // Begin sync_api::HttpPostProviderInterface implementation: 17 // Begin sync_api::HttpPostProviderInterface implementation:
18 virtual void SetUserAgent(const char* user_agent) OVERRIDE {} 18 virtual void SetUserAgent(const char* user_agent) OVERRIDE {}
19 19
20 virtual void SetExtraRequestHeaders(const char * headers) OVERRIDE {} 20 virtual void SetExtraRequestHeaders(const char * headers) OVERRIDE {}
21 21
22 virtual void SetURL(const char* url, int port) OVERRIDE {} 22 virtual void SetURL(const char* url, int port) OVERRIDE {}
23 23
24 virtual void SetPostPayload(const char* content_type, 24 virtual void SetPostPayload(const char* content_type,
25 int content_length, 25 int content_length,
26 const char* content) OVERRIDE {} 26 const char* content) OVERRIDE {}
27 27
28 virtual bool MakeSynchronousPost(int* os_error_code, 28 virtual bool MakeSynchronousPost(int* error_code,
29 int* response_code) OVERRIDE; 29 int* response_code) OVERRIDE;
30 30
31 virtual int GetResponseContentLength() const OVERRIDE; 31 virtual int GetResponseContentLength() const OVERRIDE;
32 32
33 virtual const char* GetResponseContent() const OVERRIDE; 33 virtual const char* GetResponseContent() const OVERRIDE;
34 34
35 virtual const std::string GetResponseHeaderValue( 35 virtual const std::string GetResponseHeaderValue(
36 const std::string&) const OVERRIDE; 36 const std::string&) const OVERRIDE;
37 37
38 virtual void Abort(); 38 virtual void Abort();
39 // End sync_api::HttpPostProviderInterface implementation. 39 // End sync_api::HttpPostProviderInterface implementation.
40 }; 40 };
41 41
42 class TestHttpBridgeFactory : public sync_api::HttpPostProviderFactory { 42 class TestHttpBridgeFactory : public sync_api::HttpPostProviderFactory {
43 public: 43 public:
44 TestHttpBridgeFactory(); 44 TestHttpBridgeFactory();
45 virtual ~TestHttpBridgeFactory(); 45 virtual ~TestHttpBridgeFactory();
46 46
47 // sync_api::HttpPostProviderFactory: 47 // sync_api::HttpPostProviderFactory:
48 virtual sync_api::HttpPostProviderInterface* Create() OVERRIDE; 48 virtual sync_api::HttpPostProviderInterface* Create() OVERRIDE;
49 virtual void Destroy(sync_api::HttpPostProviderInterface* http) OVERRIDE; 49 virtual void Destroy(sync_api::HttpPostProviderInterface* http) OVERRIDE;
50 }; 50 };
51 51
52 } // namespace browser_sync 52 } // namespace browser_sync
53 53
54 #endif // CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ 54 #endif // CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/internal_api/syncapi_unittest.cc ('k') | chrome/browser/sync/test/test_http_bridge_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698