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

Side by Side Diff: media/blink/cache_util_unittest.cc

Issue 495353003: Move WebMediaPlayerImpl and its dependencies to media/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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
« no previous file with comments | « media/blink/cache_util.cc ('k') | media/blink/encrypted_media_player_support.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/renderer/media/cache_util.h" 5 #include "media/blink/cache_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/WebKit/public/platform/WebString.h" 14 #include "third_party/WebKit/public/platform/WebString.h"
15 #include "third_party/WebKit/public/platform/WebURLResponse.h" 15 #include "third_party/WebKit/public/platform/WebURLResponse.h"
16 16
17 using blink::WebString; 17 using blink::WebString;
18 using blink::WebURLResponse; 18 using blink::WebURLResponse;
19 19
20 namespace content { 20 namespace media {
21 21
22 // Inputs & expected output for GetReasonsForUncacheability. 22 // Inputs & expected output for GetReasonsForUncacheability.
23 struct GRFUTestCase { 23 struct GRFUTestCase {
24 WebURLResponse::HTTPVersion version; 24 WebURLResponse::HTTPVersion version;
25 int status_code; 25 int status_code;
26 const char* headers; 26 const char* headers;
27 uint32 expected_reasons; 27 uint32 expected_reasons;
28 }; 28 };
29 29
30 // Create a new WebURLResponse object. 30 // Create a new WebURLResponse object.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 for (size_t i = 0; i < arraysize(tests); ++i) { 87 for (size_t i = 0; i < arraysize(tests); ++i) {
88 SCOPED_TRACE(base::StringPrintf("case: %" PRIuS 88 SCOPED_TRACE(base::StringPrintf("case: %" PRIuS
89 ", version: %d, code: %d, headers: %s", 89 ", version: %d, code: %d, headers: %s",
90 i, tests[i].version, tests[i].status_code, 90 i, tests[i].version, tests[i].status_code,
91 tests[i].headers)); 91 tests[i].headers));
92 EXPECT_EQ(GetReasonsForUncacheability(CreateResponse(tests[i])), 92 EXPECT_EQ(GetReasonsForUncacheability(CreateResponse(tests[i])),
93 tests[i].expected_reasons); 93 tests[i].expected_reasons);
94 } 94 }
95 } 95 }
96 96
97 } // namespace content 97 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/cache_util.cc ('k') | media/blink/encrypted_media_player_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698