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

Unified Diff: media/blink/resource_multibuffer_data_provider_unittest.cc

Issue 2710023009: media: Stop sending if-match headers for media fetch requests. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « media/blink/resource_multibuffer_data_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/resource_multibuffer_data_provider_unittest.cc
diff --git a/media/blink/resource_multibuffer_data_provider_unittest.cc b/media/blink/resource_multibuffer_data_provider_unittest.cc
index af0b3f525fc8f66cd3e96879b293b292f1cd6339..e3ad93888a7432c0c2c07090c6d1f7289d96561c 100644
--- a/media/blink/resource_multibuffer_data_provider_unittest.cc
+++ b/media/blink/resource_multibuffer_data_provider_unittest.cc
@@ -55,11 +55,7 @@ const int kHttpPartialContent = 206;
enum NetworkState { NONE, LOADED, LOADING };
// Predicate that tests that request disallows compressed data.
-static bool CorrectAcceptEncodingAndEtag(const blink::WebURLRequest& request) {
- std::string etag =
- request.httpHeaderField(WebString::fromUTF8("If-Match")).utf8();
- EXPECT_EQ(etag, kEtag);
-
+static bool CorrectAcceptEncoding(const blink::WebURLRequest& request) {
std::string value =
request.httpHeaderField(
WebString::fromUTF8(net::HttpRequestHeaders::kAcceptEncoding))
@@ -111,9 +107,8 @@ class ResourceMultiBufferDataProviderTest : public testing::Test {
void Start() {
InSequence s;
- EXPECT_CALL(
- *url_loader_,
- loadAsynchronously(Truly(CorrectAcceptEncodingAndEtag), loader_));
+ EXPECT_CALL(*url_loader_,
+ loadAsynchronously(Truly(CorrectAcceptEncoding), loader_));
loader_->Start();
}
« no previous file with comments | « media/blink/resource_multibuffer_data_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698