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

Side by Side Diff: chrome/test/chromedriver/util.h

Issue 353063005: [ChromeDriver] Subscribe PerformanceLogger to CommandListener interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_TEST_CHROMEDRIVER_UTIL_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_UTIL_H_
6 #define CHROME_TEST_CHROMEDRIVER_UTIL_H_ 6 #define CHROME_TEST_CHROMEDRIVER_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/test/chromedriver/session.h"
stgao 2014/06/27 16:48:25 declare it like below instead of a direct include.
johnmoore 2014/06/27 21:58:03 Done.
11
10 namespace base { 12 namespace base {
11 class FilePath; 13 class FilePath;
12 class ListValue; 14 class ListValue;
13 } 15 }
14 16
15 class Status; 17 class Status;
16 class WebView; 18 class WebView;
17 19
18 // Generates a random, 32-character hexidecimal ID. 20 // Generates a random, 32-character hexidecimal ID.
19 std::string GenerateId(); 21 std::string GenerateId();
(...skipping 12 matching lines...) Expand all
32 // Unzips the sole file contained in the given zip data |bytes| into 34 // Unzips the sole file contained in the given zip data |bytes| into
33 // |unzip_dir|. The zip data may be a normal zip archive or a single zip file 35 // |unzip_dir|. The zip data may be a normal zip archive or a single zip file
34 // entry. If the unzip successfully produced one file, returns true and sets 36 // entry. If the unzip successfully produced one file, returns true and sets
35 // |file| to the unzipped file. 37 // |file| to the unzipped file.
36 // TODO(kkania): Remove the ability to parse single zip file entries when 38 // TODO(kkania): Remove the ability to parse single zip file entries when
37 // the current versions of all WebDriver clients send actual zip files. 39 // the current versions of all WebDriver clients send actual zip files.
38 Status UnzipSoleFile(const base::FilePath& unzip_dir, 40 Status UnzipSoleFile(const base::FilePath& unzip_dir,
39 const std::string& bytes, 41 const std::string& bytes,
40 base::FilePath* file); 42 base::FilePath* file);
41 43
44 // Calls BeforeCommand for each of session's CommandListeners
45 void NotifySessionListenersBeforeCommand(Session* session,
46 const std::string& command_name);
47
42 #endif // CHROME_TEST_CHROMEDRIVER_UTIL_H_ 48 #endif // CHROME_TEST_CHROMEDRIVER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698