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

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

Issue 2009483002: Remove WebMemoryDumpProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | third_party/WebKit/Source/core/fetch/Resource.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/test/launcher/unit_test_launcher.h" 9 #include "base/test/launcher/unit_test_launcher.h"
10 #include "base/test/test_suite.h" 10 #include "base/test/test_suite.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 std::unique_ptr<scheduler::RendererSchedulerImpl> scheduler_; 64 std::unique_ptr<scheduler::RendererSchedulerImpl> scheduler_;
65 std::unique_ptr<blink::WebScheduler> web_scheduler_; 65 std::unique_ptr<blink::WebScheduler> web_scheduler_;
66 std::unique_ptr<blink::WebTaskRunner> web_task_runner_; 66 std::unique_ptr<blink::WebTaskRunner> web_task_runner_;
67 }; 67 };
68 68
69 class TestBlinkPlatformSupport : NON_EXPORTED_BASE(public blink::Platform) { 69 class TestBlinkPlatformSupport : NON_EXPORTED_BASE(public blink::Platform) {
70 public: 70 public:
71 ~TestBlinkPlatformSupport() override; 71 ~TestBlinkPlatformSupport() override;
72 72
73 blink::WebThread* currentThread() override { return &m_currentThread; } 73 blink::WebThread* currentThread() override { return &m_currentThread; }
74 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*,
75 const char* name) override {}
76 void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) override {}
77 74
78 private: 75 private:
79 CurrentThreadMock m_currentThread; 76 CurrentThreadMock m_currentThread;
80 }; 77 };
81 78
82 TestBlinkPlatformSupport::~TestBlinkPlatformSupport() {} 79 TestBlinkPlatformSupport::~TestBlinkPlatformSupport() {}
83 80
84 class BlinkMediaTestSuite : public base::TestSuite { 81 class BlinkMediaTestSuite : public base::TestSuite {
85 public: 82 public:
86 BlinkMediaTestSuite(int argc, char** argv); 83 BlinkMediaTestSuite(int argc, char** argv);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 blink::initialize(blink_platform_support_.get()); 123 blink::initialize(blink_platform_support_.get());
127 } 124 }
128 125
129 int main(int argc, char** argv) { 126 int main(int argc, char** argv) {
130 BlinkMediaTestSuite test_suite(argc, argv); 127 BlinkMediaTestSuite test_suite(argc, argv);
131 128
132 return base::LaunchUnitTests( 129 return base::LaunchUnitTests(
133 argc, argv, base::Bind(&BlinkMediaTestSuite::Run, 130 argc, argv, base::Bind(&BlinkMediaTestSuite::Run,
134 base::Unretained(&test_suite))); 131 base::Unretained(&test_suite)));
135 } 132 }
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | third_party/WebKit/Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698