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

Unified Diff: content/common/gpu/media/video_encode_accelerator_unittest.cc

Issue 141113003: Refactor base/safe_numerics.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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/common/gpu/media/video_encode_accelerator_unittest.cc
===================================================================
--- content/common/gpu/media/video_encode_accelerator_unittest.cc (revision 245415)
+++ content/common/gpu/media/video_encode_accelerator_unittest.cc (working copy)
@@ -8,8 +8,8 @@
#include "base/file_util.h"
#include "base/files/memory_mapped_file.h"
#include "base/memory/scoped_vector.h"
+#include "base/numerics/safe_conversions.h"
#include "base/process/process.h"
-#include "base/safe_numerics.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "content/common/gpu/media/exynos_video_encode_accelerator.h"
@@ -495,7 +495,7 @@
seen_keyframe_in_this_buffer_ = false;
if (save_to_file_) {
- int size = base::checked_numeric_cast<int>(payload_size);
+ int size = base::checked_cast<int>(payload_size);
EXPECT_EQ(file_util::AppendToFile(
base::FilePath::FromUTF8Unsafe(test_stream_.out_filename),
static_cast<char*>(shm->memory()),
« no previous file with comments | « content/common/child_process_sandbox_support_impl_linux.cc ('k') | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698