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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc

Issue 219523002: Move extension whitelist switch to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cros Created 6 years, 8 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #if defined(OS_MACOSX) 7 #if defined(OS_MACOSX)
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #endif 9 #endif
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/common/extensions/features/complex_feature.h" 22 #include "chrome/common/extensions/features/complex_feature.h"
23 #include "chrome/common/extensions/features/simple_feature.h" 23 #include "chrome/common/extensions/features/simple_feature.h"
24 #include "chrome/test/base/test_launcher_utils.h" 24 #include "chrome/test/base/test_launcher_utils.h"
25 #include "chrome/test/base/test_switches.h" 25 #include "chrome/test/base/test_switches.h"
26 #include "chrome/test/base/tracing.h" 26 #include "chrome/test/base/tracing.h"
27 #include "content/public/browser/render_process_host.h" 27 #include "content/public/browser/render_process_host.h"
28 #include "content/public/browser/render_view_host.h" 28 #include "content/public/browser/render_view_host.h"
29 #include "content/public/common/content_switches.h" 29 #include "content/public/common/content_switches.h"
30 #include "extensions/common/feature_switch.h" 30 #include "extensions/common/feature_switch.h"
31 #include "extensions/common/features/feature.h" 31 #include "extensions/common/features/feature.h"
32 #include "extensions/common/switches.h"
32 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
33 #include "testing/perf/perf_test.h" 34 #include "testing/perf/perf_test.h"
34 #include "ui/compositor/compositor_switches.h" 35 #include "ui/compositor/compositor_switches.h"
35 #include "ui/gl/gl_switches.h" 36 #include "ui/gl/gl_switches.h"
36 37
37 namespace { 38 namespace {
38 39
39 const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf"; 40 const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf";
40 41
41 enum TestFlags { 42 enum TestFlags {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 127
127 if (!HasFlag(kUseGpu)) { 128 if (!HasFlag(kUseGpu)) {
128 command_line->AppendSwitch(switches::kDisableGpu); 129 command_line->AppendSwitch(switches::kDisableGpu);
129 } else { 130 } else {
130 command_line->AppendSwitch(switches::kForceCompositingMode); 131 command_line->AppendSwitch(switches::kForceCompositingMode);
131 } 132 }
132 133
133 if (HasFlag(kDisableVsync)) 134 if (HasFlag(kDisableVsync))
134 command_line->AppendSwitch(switches::kDisableGpuVsync); 135 command_line->AppendSwitch(switches::kDisableGpuVsync);
135 136
136 command_line->AppendSwitchASCII(switches::kWhitelistedExtensionID, 137 command_line->AppendSwitchASCII(
137 kExtensionId); 138 extensions::switches::kWhitelistedExtensionID,
139 kExtensionId);
138 ExtensionApiTest::SetUpCommandLine(command_line); 140 ExtensionApiTest::SetUpCommandLine(command_line);
139 } 141 }
140 142
141 bool PrintResults(trace_analyzer::TraceAnalyzer *analyzer, 143 bool PrintResults(trace_analyzer::TraceAnalyzer *analyzer,
142 const std::string& test_name, 144 const std::string& test_name,
143 const std::string& event_name, 145 const std::string& event_name,
144 const std::string& unit) { 146 const std::string& unit) {
145 trace_analyzer::TraceEventVector events; 147 trace_analyzer::TraceEventVector events;
146 trace_analyzer::Query query = 148 trace_analyzer::Query query =
147 trace_analyzer::Query::EventNameIs(event_name) && 149 trace_analyzer::Query::EventNameIs(event_name) &&
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 TabCapturePerformanceTest, 258 TabCapturePerformanceTest,
257 testing::Values( 259 testing::Values(
258 kScalingTestBase | kScaleQualityFast, 260 kScalingTestBase | kScaleQualityFast,
259 kScalingTestBase | kScaleQualityGood, 261 kScalingTestBase | kScaleQualityGood,
260 kScalingTestBase | kScaleQualityBest, 262 kScalingTestBase | kScaleQualityBest,
261 kScalingTestBase | kScaleQualityFast | kSmallWindow, 263 kScalingTestBase | kScaleQualityFast | kSmallWindow,
262 kScalingTestBase | kScaleQualityGood | kSmallWindow, 264 kScalingTestBase | kScaleQualityGood | kSmallWindow,
263 kScalingTestBase | kScaleQualityBest | kSmallWindow)); 265 kScalingTestBase | kScaleQualityBest | kSmallWindow));
264 266
265 #endif // USE_AURA 267 #endif // USE_AURA
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698