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

Unified Diff: util/file/basename_posix.cc

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_posix.cc
diff --git a/test/thread.cc b/util/file/basename_posix.cc
similarity index 78%
copy from test/thread.cc
copy to util/file/basename_posix.cc
index baeeafa632152c4edd71aa04be6a4d32a0824d2e..de37b69ab80d0d54b2bee95ca30adcd197ee0ab9 100644
--- a/test/thread.cc
+++ b/util/file/basename_posix.cc
@@ -12,19 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "test/thread.h"
+#include "util/file/basename.h"
-#include "gtest/gtest.h"
+#include <libgen.h>
namespace crashpad {
-namespace test {
-Thread::Thread() : platform_thread_(0) {
+std::string Basename(const std::string& path) {
+ std::string copy(path);
+ return std::string(basename(&copy[0]));
}
-Thread::~Thread() {
- EXPECT_FALSE(platform_thread_);
-}
-
-} // namespace test
} // namespace crashpad

Powered by Google App Engine
This is Rietveld 408576698