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
3 // found in the LICENSE file.
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_BROWSER_INFO_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_BROWSER_INFO_H_
8 #include "chrome/test/chromedriver/chrome/status.h"
10 // Content Shell and WebView have an empty product version and a fake user
11 // agent. There's no way to detect the actual version, so unless specified we
12 // assume it is tip of tree.
13 static const int kToTBuildNo = 9999;
15 // Similarly, if the Blink Revision isn't given then assume it is tip of tree.
16 static const int kToTBlinkRevision = 999999;
20 BrowserInfo(std::string browser_name_,
21 std::string browser_version_,
25 std::string browser_name;
26 std::string browser_version;
31 Status ParseBrowserInfo(const std::string& data,
32 BrowserInfo* browser_info);
34 Status ParseBrowserString(const std::string& browser_string,
35 std::string* browser_name,
36 std::string* browser_version,
39 Status ParseBlinkVersionString(const std::string& blink_version,
42 bool IsGitHash(const std::string& revision);
44 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_BROWSER_INFO_H_