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

Unified Diff: net/base/mime_util_unittest.cc

Issue 2943703002: Use ContainsValue() instead of std::find() in net/ (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | net/base/network_throttle_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util_unittest.cc
diff --git a/net/base/mime_util_unittest.cc b/net/base/mime_util_unittest.cc
index 608f16dcb47fb2d9969fa2fed5611ceef5a8146c..c6516349398f577031b23de890dd33436b2abbfc 100644
--- a/net/base/mime_util_unittest.cc
+++ b/net/base/mime_util_unittest.cc
@@ -4,8 +4,7 @@
#include "net/base/mime_util.h"
-#include <algorithm>
-
+#include "base/stl_util.h"
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
@@ -273,8 +272,7 @@ TEST(MimeUtilTest, TestGetExtensionsForMimeType) {
test.contained_result,
test.contained_result + strlen(test.contained_result));
- bool found = std::find(extensions.begin(), extensions.end(),
- contained_result) != extensions.end();
+ bool found = base::ContainsValue(extensions, contained_result);
ASSERT_TRUE(found) << "Must find at least the contained result within "
<< test.mime_type;
« no previous file with comments | « no previous file | net/base/network_throttle_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698