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

Unified Diff: client/deps/glbench/src/utils.cc

Issue 2794002: Added gflags switches: duration, tests, save, out. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: addressed comments Created 10 years, 6 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 | « client/deps/glbench/src/utils.h ('k') | client/deps/glbench/src/varyingsandddxytest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/utils.cc
diff --git a/client/deps/glbench/src/utils.cc b/client/deps/glbench/src/utils.cc
index 8709faffccdbae6ffd499446e383e60d932e3456..4dfc467d26728b94cee5eeb7dca2af19ed4dc8aa 100644
--- a/client/deps/glbench/src/utils.cc
+++ b/client/deps/glbench/src/utils.cc
@@ -8,11 +8,9 @@
#include <sys/mman.h>
#include <unistd.h>
-#include "utils.h"
-
-#include "base/file_path.h"
#include "base/logging.h"
#include "main.h"
+#include "utils.h"
FilePath *g_base_path = new FilePath();
@@ -26,6 +24,10 @@ void SetBasePathFromArgv0(const char* argv0, const char* relative) {
g_base_path = new FilePath(base_path);
}
+const FilePath& GetBasePath() {
+ return *g_base_path;
+}
+
void *MmapFile(const char* name, size_t* length) {
FilePath filename = g_base_path->Append(name);
int fd = open(filename.value().c_str(), O_RDONLY);
« no previous file with comments | « client/deps/glbench/src/utils.h ('k') | client/deps/glbench/src/varyingsandddxytest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698