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

Unified Diff: content/browser/fileapi/mock_url_request_delegate.h

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/fileapi/mock_url_request_delegate.h
diff --git a/content/browser/fileapi/mock_url_request_delegate.h b/content/browser/fileapi/mock_url_request_delegate.h
deleted file mode 100644
index 322d2444070d4c05c834eeb1fec08b835a37597e..0000000000000000000000000000000000000000
--- a/content/browser/fileapi/mock_url_request_delegate.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H_
-#define CONTENT_BROWSER_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H_
-
-#include "net/base/io_buffer.h"
-#include "net/url_request/url_request.h"
-
-namespace net {
-class IOBuffer;
-}
-
-namespace content {
-
-// A URL request delegate that receives the response body.
-class MockURLRequestDelegate : public net::URLRequest::Delegate {
- public:
- MockURLRequestDelegate();
- ~MockURLRequestDelegate() override;
-
- void OnResponseStarted(net::URLRequest* request) override;
- void OnReadCompleted(net::URLRequest* request, int bytes_read) override;
- const std::string& response_data() const { return response_data_; }
- const net::IOBufferWithSize* metadata() const { return metadata_.get(); }
-
- private:
- void ReadSome(net::URLRequest* request);
- void ReceiveData(net::URLRequest* request, int bytes_read);
- void RequestComplete();
-
- scoped_refptr<net::IOBuffer> io_buffer_;
- std::string response_data_;
- scoped_refptr<net::IOBufferWithSize> metadata_;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H_
« no previous file with comments | « content/browser/fileapi/mock_file_update_observer.cc ('k') | content/browser/fileapi/mock_url_request_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698