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

Unified Diff: chrome/test/chromedriver/capabilities.h

Issue 429693003: [ChromeDriver] Implementing PerfLoggingPrefs for perf log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Increasing test coverage Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/chromedriver/capabilities.cc » ('j') | chrome/test/chromedriver/capabilities.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/capabilities.h
diff --git a/chrome/test/chromedriver/capabilities.h b/chrome/test/chromedriver/capabilities.h
index edef9baeac599ce7285771b811219153ffc632c6..6ba7d40715b7c45229cf6ca3131bd1c32a0b217e 100644
--- a/chrome/test/chromedriver/capabilities.h
+++ b/chrome/test/chromedriver/capabilities.h
@@ -60,6 +60,30 @@ class Switches {
typedef std::map<std::string, Log::Level> LoggingPrefs;
+struct PerfLoggingPrefs {
+ PerfLoggingPrefs();
+ ~PerfLoggingPrefs();
samuong 2014/08/04 06:08:22 This probably doesn't matter since no one will eve
johnmoore 2014/08/04 17:37:57 For consistency, I think we shouldn't, since neith
+
+ // We must distinguish between a log domain being set by default and being
+ // explicitly set. Otherwise, |PerformanceLogger| could only handle 3 of 4
+ // possible combinations (tracing enabled/disabled + Timeline on/off).
+ enum InspectorDomainStatus {
+ kDefaultEnabled, // enabled by default
+ kDefaultDisabled, // disabled by default
+ kExplicitlyEnabled, // explicitly enabled
+ kExplicitlyDisabled // explicitly disabled
samuong 2014/08/04 06:08:22 I think people will be able to figure out what the
johnmoore 2014/08/04 17:37:57 Done.
+ };
+
+ // True if |domain_status| is kDefaultEnabled or kExplicitlyEnabled.
+ static bool IsEnabled(const InspectorDomainStatus& domain_status);
samuong 2014/08/04 06:08:22 structs aren't usually supposed to have any logic
johnmoore 2014/08/04 17:37:58 Done.
+
+ InspectorDomainStatus network;
+ InspectorDomainStatus page;
+ InspectorDomainStatus timeline;
+
+ std::string trace_categories; // Non-empty string enables tracing.
+};
+
struct Capabilities {
Capabilities();
~Capabilities();
@@ -114,6 +138,8 @@ struct Capabilities {
// If set, enable minidump for chrome crashes and save to this directory.
std::string minidump_path;
+ PerfLoggingPrefs perf_logging_prefs;
+
scoped_ptr<base::DictionaryValue> prefs;
Switches switches;
« no previous file with comments | « no previous file | chrome/test/chromedriver/capabilities.cc » ('j') | chrome/test/chromedriver/capabilities.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698