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

Unified Diff: util/file/basename.h

Issue 1120383003: Get generate_dump compiling on Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@tools
Patch Set: fix os type in sysinfo Created 5 years, 8 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: util/file/basename.h
diff --git a/test/thread.cc b/util/file/basename.h
similarity index 69%
copy from test/thread.cc
copy to util/file/basename.h
index baeeafa632152c4edd71aa04be6a4d32a0824d2e..c09815793af3fd6d78739b1a1a5aa26a4c465d32 100644
--- a/test/thread.cc
+++ b/util/file/basename.h
@@ -12,19 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "test/thread.h"
+#ifndef CRASHPAD_UTIL_FILE_BASENAME_H_
+#define CRASHPAD_UTIL_FILE_BASENAME_H_
-#include "gtest/gtest.h"
+#include <string>
namespace crashpad {
-namespace test {
-Thread::Thread() : platform_thread_(0) {
-}
+//! \brief Splits a file path into the directory and filename parts, and returns
Mark Mentovai 2015/05/04 21:21:58 I was going to say that this should be done in com
scottmg 2015/05/04 23:30:07 Oh, for some reason I thought we didn't have all o
+//! the filename.
+std::string Basename(const std::string& path);
-Thread::~Thread() {
- EXPECT_FALSE(platform_thread_);
-}
-
-} // namespace test
} // namespace crashpad
+
+#endif // CRASHPAD_UTIL_FILE_BASENAME_H_

Powered by Google App Engine
This is Rietveld 408576698