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

Unified Diff: media/base/run_all_unittests.cc

Issue 1144323003: media: Refactor SkCanvasVideoRenderer to use SkImages and not SkBitmaps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/scoped_refptr<VideoFrame>&/VideoFrame*/ where possible. Created 5 years, 4 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 | « cc/test/cc_test_suite.cc ('k') | media/blink/skcanvas_video_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/run_all_unittests.cc
diff --git a/media/base/run_all_unittests.cc b/media/base/run_all_unittests.cc
index 7c0c14aa2e6ff3bc104bc98135e81b32f81c6193..dfde2b52b86be6d5d1afac4155c66bf2f9b93bce 100644
--- a/media/base/run_all_unittests.cc
+++ b/media/base/run_all_unittests.cc
@@ -5,6 +5,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/test_discardable_memory_allocator.h"
#include "base/test/test_suite.h"
#include "build/build_config.h"
#include "media/base/media.h"
@@ -23,6 +24,9 @@ class TestSuiteNoAtExit : public base::TestSuite {
protected:
void Initialize() override;
+
+ private:
+ base::TestDiscardableMemoryAllocator discardable_memory_allocator_;
};
void TestSuiteNoAtExit::Initialize() {
@@ -43,6 +47,8 @@ void TestSuiteNoAtExit::Initialize() {
// Run this here instead of main() to ensure an AtExitManager is already
// present.
media::InitializeMediaLibrary();
+
+ base::DiscardableMemoryAllocator::SetInstance(&discardable_memory_allocator_);
}
int main(int argc, char** argv) {
« no previous file with comments | « cc/test/cc_test_suite.cc ('k') | media/blink/skcanvas_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698