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

Side by Side Diff: chrome/browser/media/chrome_webrtc_video_quality_browsertest.cc

Issue 135213003: Ensure GL initialization only happens once, and provide common init path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initgl: compile3 Created 6 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 | Annotate | Revision Log
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 "base/environment.h" 5 #include "base/environment.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/process/launch.h" 8 #include "base/process/launch.h"
9 #include "base/strings/string_split.h" 9 #include "base/strings/string_split.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
24 #include "chrome/test/base/in_process_browser_test.h" 24 #include "chrome/test/base/in_process_browser_test.h"
25 #include "chrome/test/base/ui_test_utils.h" 25 #include "chrome/test/base/ui_test_utils.h"
26 #include "chrome/test/ui/ui_test.h" 26 #include "chrome/test/ui/ui_test.h"
27 #include "content/public/browser/notification_service.h" 27 #include "content/public/browser/notification_service.h"
28 #include "content/public/test/browser_test_utils.h" 28 #include "content/public/test/browser_test_utils.h"
29 #include "media/base/media_switches.h" 29 #include "media/base/media_switches.h"
30 #include "net/test/embedded_test_server/embedded_test_server.h" 30 #include "net/test/embedded_test_server/embedded_test_server.h"
31 #include "net/test/python_utils.h" 31 #include "net/test/python_utils.h"
32 #include "testing/perf/perf_test.h" 32 #include "testing/perf/perf_test.h"
33 #include "ui/gl/gl_switches.h"
33 34
34 static const base::FilePath::CharType kFrameAnalyzerExecutable[] = 35 static const base::FilePath::CharType kFrameAnalyzerExecutable[] =
35 #if defined(OS_WIN) 36 #if defined(OS_WIN)
36 FILE_PATH_LITERAL("frame_analyzer.exe"); 37 FILE_PATH_LITERAL("frame_analyzer.exe");
37 #else 38 #else
38 FILE_PATH_LITERAL("frame_analyzer"); 39 FILE_PATH_LITERAL("frame_analyzer");
39 #endif 40 #endif
40 41
41 static const base::FilePath::CharType kArgbToI420ConverterExecutable[] = 42 static const base::FilePath::CharType kArgbToI420ConverterExecutable[] =
42 #if defined(OS_WIN) 43 #if defined(OS_WIN)
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 367
367 RunARGBtoI420Converter( 368 RunARGBtoI420Converter(
368 kVgaWidth, kVgaHeight, GetWorkingDir().Append(kCapturedYuvFileName)); 369 kVgaWidth, kVgaHeight, GetWorkingDir().Append(kCapturedYuvFileName));
369 ASSERT_TRUE( 370 ASSERT_TRUE(
370 CompareVideosAndPrintResult(kVgaWidth, 371 CompareVideosAndPrintResult(kVgaWidth,
371 kVgaHeight, 372 kVgaHeight,
372 GetWorkingDir().Append(kCapturedYuvFileName), 373 GetWorkingDir().Append(kCapturedYuvFileName),
373 GetWorkingDir().Append(kReferenceYuvFileName), 374 GetWorkingDir().Append(kReferenceYuvFileName),
374 GetWorkingDir().Append(kStatsFileName))); 375 GetWorkingDir().Append(kStatsFileName)));
375 } 376 }
OLDNEW
« no previous file with comments | « chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698