OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |