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

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

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/media/cache_util.h" 5 #include "webkit/media/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/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }, 78 },
79 { 79 {
80 WebURLResponse::HTTP_1_1, 200, "cache-control: no-store", kNoStore 80 WebURLResponse::HTTP_1_1, 200, "cache-control: no-store", kNoStore
81 }, 81 },
82 { 82 {
83 WebURLResponse::HTTP_1_1, 200, 83 WebURLResponse::HTTP_1_1, 200,
84 "cache-control: no-cache\ncache-control: no-store", kNoCache | kNoStore 84 "cache-control: no-cache\ncache-control: no-store", kNoCache | kNoStore
85 }, 85 },
86 }; 86 };
87 for (size_t i = 0; i < arraysize(tests); ++i) { 87 for (size_t i = 0; i < arraysize(tests); ++i) {
88 SCOPED_TRACE(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 webkit_media 97 } // namespace webkit_media
OLDNEW
« ipc/ipc_message_utils.cc ('K') | « webkit/fileapi/obfuscated_file_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698