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

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

Issue 23509002: Factor out a perf test result printer method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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"
11 #include "base/test/test_timeouts.h" 11 #include "base/test/test_timeouts.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/infobars/infobar.h" 14 #include "chrome/browser/infobars/infobar.h"
15 #include "chrome/browser/infobars/infobar_service.h" 15 #include "chrome/browser/infobars/infobar_service.h"
16 #include "chrome/browser/media/media_stream_infobar_delegate.h" 16 #include "chrome/browser/media/media_stream_infobar_delegate.h"
17 #include "chrome/browser/media/webrtc_browsertest_base.h" 17 #include "chrome/browser/media/webrtc_browsertest_base.h"
18 #include "chrome/browser/media/webrtc_browsertest_common.h" 18 #include "chrome/browser/media/webrtc_browsertest_common.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/ui/browser.h" 20 #include "chrome/browser/ui/browser.h"
21 #include "chrome/browser/ui/browser_tabstrip.h" 21 #include "chrome/browser/ui/browser_tabstrip.h"
22 #include "chrome/browser/ui/tabs/tab_strip_model.h" 22 #include "chrome/browser/ui/tabs/tab_strip_model.h"
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/perf/perf_test.h"
27 #include "chrome/test/ui/ui_test.h" 26 #include "chrome/test/ui/ui_test.h"
28 #include "content/public/browser/notification_service.h" 27 #include "content/public/browser/notification_service.h"
29 #include "content/public/test/browser_test_utils.h" 28 #include "content/public/test/browser_test_utils.h"
30 #include "net/test/python_utils.h" 29 #include "net/test/python_utils.h"
31 #include "net/test/spawned_test_server/spawned_test_server.h" 30 #include "net/test/spawned_test_server/spawned_test_server.h"
31 #include "testing/perf/perf_test.h"
32 32
33 static const base::FilePath::CharType kFrameAnalyzerExecutable[] = 33 static const base::FilePath::CharType kFrameAnalyzerExecutable[] =
34 #if defined(OS_WIN) 34 #if defined(OS_WIN)
35 FILE_PATH_LITERAL("frame_analyzer.exe"); 35 FILE_PATH_LITERAL("frame_analyzer.exe");
36 #else 36 #else
37 FILE_PATH_LITERAL("frame_analyzer"); 37 FILE_PATH_LITERAL("frame_analyzer");
38 #endif 38 #endif
39 39
40 static const base::FilePath::CharType kArgbToI420ConverterExecutable[] = 40 static const base::FilePath::CharType kArgbToI420ConverterExecutable[] =
41 #if defined(OS_WIN) 41 #if defined(OS_WIN)
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 std::string output = 452 std::string output =
453 CompareVideos(kVgaWidth, 453 CompareVideos(kVgaWidth,
454 kVgaHeight, 454 kVgaHeight,
455 GetWorkingDir().Append(kCapturedYuvFileName), 455 GetWorkingDir().Append(kCapturedYuvFileName),
456 GetWorkingDir().Append(kReferenceYuvFileName), 456 GetWorkingDir().Append(kReferenceYuvFileName),
457 GetWorkingDir().Append(kStatsFileName)); 457 GetWorkingDir().Append(kStatsFileName));
458 458
459 PrintFramesCountPerfResults(output); 459 PrintFramesCountPerfResults(output);
460 PrintPsnrAndSsimPerfResults(output); 460 PrintPsnrAndSsimPerfResults(output);
461 } 461 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698