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

Side by Side Diff: chrome/test/automation/automation_proxy.h

Issue 12150004: Category group support/Renamings. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added destructor for CategoryFilter class per CQ failure. Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 // Gets the next extension test result in |result|. Returns false if there 147 // Gets the next extension test result in |result|. Returns false if there
148 // was a problem sending the result querying RPC. 148 // was a problem sending the result querying RPC.
149 bool GetExtensionTestResult(bool* result, std::string* message); 149 bool GetExtensionTestResult(bool* result, std::string* message);
150 150
151 // Generic pattern for sending automation requests. 151 // Generic pattern for sending automation requests.
152 bool SendJSONRequest(const std::string& request, 152 bool SendJSONRequest(const std::string& request,
153 int timeout_ms, 153 int timeout_ms,
154 std::string* response) WARN_UNUSED_RESULT; 154 std::string* response) WARN_UNUSED_RESULT;
155 155
156 // Begin tracing specified categories on the browser instance. Blocks until 156 // Begin tracing specified category_patterns on the browser instance. Blocks
157 // browser acknowledges that tracing has begun (or failed if false is 157 // until browser acknowledges that tracing has begun (or failed if false is
158 // returned). |categories| is a comma-delimited list of category wildcards. 158 // returned). |category_patterns| is a comma-delimited list of category
159 // A category can have an optional '-' prefix to make it an excluded category. 159 // wildcards.
160 // Either all categories must be included or all must be excluded. 160 // A category pattern can have an optional '-' prefix to exclude category
161 // groups that contain matching category.
162 // Either all category_patterns must be included or all must be excluded.
161 // 163 //
162 // Example: BeginTracing("test_MyTest*"); 164 // Example: BeginTracing("test_MyTest*");
163 // Example: BeginTracing("test_MyTest*,test_OtherStuff"); 165 // Example: BeginTracing("test_MyTest*,test_OtherStuff");
164 // Example: BeginTracing("-excluded_category1,-excluded_category2"); 166 // Example: BeginTracing("-excluded_category1,-excluded_category2");
165 // 167 //
166 // See base/event_trace.h for documentation of included and excluded 168 // See base/event_trace.h for documentation of included and excluded
167 // categories. 169 // category_patterns.
168 bool BeginTracing(const std::string& categories) WARN_UNUSED_RESULT; 170 bool BeginTracing(const std::string& category_patterns) WARN_UNUSED_RESULT;
169 171
170 // End trace and collect the trace output as a json string. 172 // End trace and collect the trace output as a json string.
171 bool EndTracing(std::string* json_trace_output) WARN_UNUSED_RESULT; 173 bool EndTracing(std::string* json_trace_output) WARN_UNUSED_RESULT;
172 174
173 IPC::SyncChannel* channel(); 175 IPC::SyncChannel* channel();
174 176
175 // AutomationMessageSender implementation. 177 // AutomationMessageSender implementation.
176 virtual bool Send(IPC::Message* message) WARN_UNUSED_RESULT; 178 virtual bool Send(IPC::Message* message) WARN_UNUSED_RESULT;
177 virtual bool Send(IPC::Message* message, int timeout_ms) WARN_UNUSED_RESULT; 179 virtual bool Send(IPC::Message* message, int timeout_ms) WARN_UNUSED_RESULT;
178 180
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 253
252 // Delay to let the browser execute the command. 254 // Delay to let the browser execute the command.
253 base::TimeDelta action_timeout_; 255 base::TimeDelta action_timeout_;
254 256
255 base::PlatformThreadId listener_thread_id_; 257 base::PlatformThreadId listener_thread_id_;
256 258
257 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); 259 DISALLOW_COPY_AND_ASSIGN(AutomationProxy);
258 }; 260 };
259 261
260 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ 262 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/common/automation_messages_internal.h ('k') | chrome/test/automation/automation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698