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

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

Issue 1419293005: Add assertions that the empty Platform::cryptographicallyRandomValues() overrides are not being use… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/test/launcher/unit_test_launcher.h" 7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_suite.h" 8 #include "base/test/test_suite.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "components/scheduler/child/scheduler_task_runner_delegate_impl.h" 10 #include "components/scheduler/child/scheduler_task_runner_delegate_impl.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 private: 76 private:
77 CurrentThreadMock m_currentThread; 77 CurrentThreadMock m_currentThread;
78 }; 78 };
79 79
80 TestBlinkPlatformSupport::~TestBlinkPlatformSupport() {} 80 TestBlinkPlatformSupport::~TestBlinkPlatformSupport() {}
81 81
82 void TestBlinkPlatformSupport::cryptographicallyRandomValues( 82 void TestBlinkPlatformSupport::cryptographicallyRandomValues(
83 unsigned char* buffer, 83 unsigned char* buffer,
84 size_t length) { 84 size_t length) {
85 NOTREACHED();
85 } 86 }
86 87
87 const unsigned char* TestBlinkPlatformSupport::getTraceCategoryEnabledFlag( 88 const unsigned char* TestBlinkPlatformSupport::getTraceCategoryEnabledFlag(
88 const char* categoryName) { 89 const char* categoryName) {
89 static const unsigned char tracingIsDisabled = 0; 90 static const unsigned char tracingIsDisabled = 0;
90 return &tracingIsDisabled; 91 return &tracingIsDisabled;
91 } 92 }
92 93
93 class BlinkMediaTestSuite : public base::TestSuite { 94 class BlinkMediaTestSuite : public base::TestSuite {
94 public: 95 public:
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 blink::initialize(blink_platform_support_.get()); 140 blink::initialize(blink_platform_support_.get());
140 } 141 }
141 142
142 int main(int argc, char** argv) { 143 int main(int argc, char** argv) {
143 BlinkMediaTestSuite test_suite(argc, argv); 144 BlinkMediaTestSuite test_suite(argc, argv);
144 145
145 return base::LaunchUnitTests( 146 return base::LaunchUnitTests(
146 argc, argv, base::Bind(&BlinkMediaTestSuite::Run, 147 argc, argv, base::Bind(&BlinkMediaTestSuite::Run,
147 base::Unretained(&test_suite))); 148 base::Unretained(&test_suite)));
148 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698