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

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

Issue 1660383002: Refactoring: Move some classes from content/child to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add PLATFORM_EXPORT; Address haraken's review Created 4 years, 10 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/content_tests.gypi ('k') | third_party/WebKit/PRESUBMIT.py » ('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/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/test/launcher/unit_test_launcher.h" 10 #include "base/test/launcher/unit_test_launcher.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 scoped_ptr<scheduler::RendererSchedulerImpl> scheduler_; 64 scoped_ptr<scheduler::RendererSchedulerImpl> scheduler_;
65 scoped_ptr<blink::WebScheduler> web_scheduler_; 65 scoped_ptr<blink::WebScheduler> web_scheduler_;
66 scoped_ptr<blink::WebTaskRunner> web_task_runner_; 66 scoped_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 {}
74 77
75 private: 78 private:
76 CurrentThreadMock m_currentThread; 79 CurrentThreadMock m_currentThread;
77 }; 80 };
78 81
79 TestBlinkPlatformSupport::~TestBlinkPlatformSupport() {} 82 TestBlinkPlatformSupport::~TestBlinkPlatformSupport() {}
80 83
81 class BlinkMediaTestSuite : public base::TestSuite { 84 class BlinkMediaTestSuite : public base::TestSuite {
82 public: 85 public:
83 BlinkMediaTestSuite(int argc, char** argv); 86 BlinkMediaTestSuite(int argc, char** argv);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 blink::initialize(blink_platform_support_.get()); 130 blink::initialize(blink_platform_support_.get());
128 } 131 }
129 132
130 int main(int argc, char** argv) { 133 int main(int argc, char** argv) {
131 BlinkMediaTestSuite test_suite(argc, argv); 134 BlinkMediaTestSuite test_suite(argc, argv);
132 135
133 return base::LaunchUnitTests( 136 return base::LaunchUnitTests(
134 argc, argv, base::Bind(&BlinkMediaTestSuite::Run, 137 argc, argv, base::Bind(&BlinkMediaTestSuite::Run,
135 base::Unretained(&test_suite))); 138 base::Unretained(&test_suite)));
136 } 139 }
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | third_party/WebKit/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698