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(©[0])); |
} |
-Thread::~Thread() { |
- EXPECT_FALSE(platform_thread_); |
-} |
- |
-} // namespace test |
} // namespace crashpad |