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

Side by Side Diff: chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc

Issue 1636083003: H264 HW encode using VideoToolbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: miu@ comments. Created 4 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <cmath> 9 #include <cmath>
10 #include <vector> 10 #include <vector>
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 } // namespace 319 } // namespace
320 320
321 class CastStreamingApiTestWithPixelOutput : public CastStreamingApiTest { 321 class CastStreamingApiTestWithPixelOutput : public CastStreamingApiTest {
322 void SetUp() override { 322 void SetUp() override {
323 EnablePixelOutput(); 323 EnablePixelOutput();
324 CastStreamingApiTest::SetUp(); 324 CastStreamingApiTest::SetUp();
325 } 325 }
326 326
327 void SetUpCommandLine(base::CommandLine* command_line) override { 327 void SetUpCommandLine(base::CommandLine* command_line) override {
328 command_line->AppendSwitchASCII(::switches::kWindowSize, "128,128"); 328 command_line->AppendSwitchASCII(::switches::kWindowSize, "128,128");
329 #if defined(OS_MACOSX)
330 command_line->AppendSwitch(::switches::kDisableVTAcceleratedVideoEncode);
miu 2016/03/09 01:48:50 Is this still needed? If the tests now work, let'
emircan 2016/03/09 02:26:03 Unfortunately it is still needed. In my local test
miu 2016/03/09 03:03:19 Ok, I think this may be the problem: https://code.
emircan 2016/03/09 04:04:45 Thank you very much. Now, cast test works as expec
331 #endif // defined(OS_MACOSX)
329 CastStreamingApiTest::SetUpCommandLine(command_line); 332 CastStreamingApiTest::SetUpCommandLine(command_line);
330 } 333 }
331 }; 334 };
332 335
333 // Tests the Cast streaming API and its basic functionality end-to-end. An 336 // Tests the Cast streaming API and its basic functionality end-to-end. An
334 // extension subtest is run to generate test content, capture that content, and 337 // extension subtest is run to generate test content, capture that content, and
335 // use the API to send it out. At the same time, this test launches an 338 // use the API to send it out. At the same time, this test launches an
336 // in-process Cast receiver, listening on a localhost UDP socket, to receive the 339 // in-process Cast receiver, listening on a localhost UDP socket, to receive the
337 // content and check whether it matches expectations. 340 // content and check whether it matches expectations.
338 // 341 //
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 391
389 delete receiver; 392 delete receiver;
390 cast_environment->Shutdown(); 393 cast_environment->Shutdown();
391 } 394 }
392 395
393 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { 396 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) {
394 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); 397 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html"));
395 } 398 }
396 399
397 } // namespace extensions 400 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698