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

Unified Diff: chrome/test/chromedriver/version.cc

Issue 12052004: [chromedriver] Create release script and handle Chrome/ChromeDriver versions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 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
Index: chrome/test/chromedriver/version.cc
diff --git a/chrome/test/chromedriver/version.cc b/chrome/test/chromedriver/version.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8a7345a2cf02b254d5372d50fe098b1e00d596ec
--- /dev/null
+++ b/chrome/test/chromedriver/version.cc
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/test/chromedriver/version.h"
+
+#include "base/stringprintf.h"
+
+namespace {
+
+const int kMinimumSupportedChromeVersion[] = {26, 0, 1390, 0};
+
+} // namespace
+
+// This variable must be able to be found and parsed by the upload script.
+const char kChromeDriverVersion[] = "0.1";
+
+const int kMinimumSupportedChromeBuildNo = kMinimumSupportedChromeVersion[2];
+
+std::string GetChromeDriverVersion() {
chrisgao (Use stgao instead) 2013/01/22 19:17:31 This function is not declared in version.h
kkania 2013/02/28 21:50:17 Whoops, i forgot to delete this when i changed kCh
+ return base::StringPrintf(
+ "%d.%d",
+ kChromeDriverVersion[0],
+ kChromeDriverVersion[1]);
chrisgao (Use stgao instead) 2013/01/22 19:17:31 kChromeDriverVersion[2]
kkania 2013/02/28 21:50:17 Removed this func
+}
+
+std::string GetMinimumSupportedChromeVersion() {
+ return base::StringPrintf(
+ "%d.%d.%d.%d",
+ kMinimumSupportedChromeVersion[0],
+ kMinimumSupportedChromeVersion[1],
+ kMinimumSupportedChromeVersion[2],
+ kMinimumSupportedChromeVersion[3]);
+}
« chrome/test/chromedriver/chrome_impl.cc ('K') | « chrome/test/chromedriver/version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698