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

Unified Diff: util/win/time.h

Issue 940793002: win: add equivalent of gettimeofday (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 years, 10 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 | « util/util.gyp ('k') | util/win/time.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/win/time.h
diff --git a/util/test/scoped_temp_dir.cc b/util/win/time.h
similarity index 73%
copy from util/test/scoped_temp_dir.cc
copy to util/win/time.h
index a2f8d251430fde0adc2227365c539f34ab6d335d..e61a8461bf987c45fd38bc7452633529ae159c83 100644
--- a/util/test/scoped_temp_dir.cc
+++ b/util/win/time.h
@@ -12,17 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "util/test/scoped_temp_dir.h"
+#ifndef CRASHPAD_UTIL_WIN_TIME_H_
+#define CRASHPAD_UTIL_WIN_TIME_H_
-namespace crashpad {
-namespace test {
+#include <sys/time.h>
-ScopedTempDir::ScopedTempDir() : path_(CreateTemporaryDirectory()) {
-}
+namespace crashpad {
-ScopedTempDir::~ScopedTempDir() {
- RecursivelyDeleteTemporaryDirectory(path());
-}
+//! \brief Similar to POSIX gettimeofday(), gets the current system time in UTC.
+void GetTimeOfDay(timeval* tv);
-} // namespace test
} // namespace crashpad
+
+#endif // CRASHPAD_UTIL_WIN_TIME_H_
« no previous file with comments | « util/util.gyp ('k') | util/win/time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698