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

Unified Diff: util/test/thread.cc

Issue 1001673002: Add Locking calls to file_io.h plus implementations and test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: add deps roll Created 5 years, 9 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/test/thread.cc
diff --git a/util/test/scoped_temp_dir.cc b/util/test/thread.cc
similarity index 79%
copy from util/test/scoped_temp_dir.cc
copy to util/test/thread.cc
index a2f8d251430fde0adc2227365c539f34ab6d335d..814797ceb805edae233b06dd3c0e7186045046f0 100644
--- a/util/test/scoped_temp_dir.cc
+++ b/util/test/thread.cc
@@ -12,17 +12,20 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "util/test/scoped_temp_dir.h"
+#include "util/test/thread.h"
+
+#include "gtest/gtest.h"
namespace crashpad {
namespace test {
-ScopedTempDir::ScopedTempDir() : path_(CreateTemporaryDirectory()) {
+Thread::Thread() : platform_thread_(0) {
}
-ScopedTempDir::~ScopedTempDir() {
- RecursivelyDeleteTemporaryDirectory(path());
+Thread::~Thread() {
+ EXPECT_FALSE(platform_thread_);
}
} // namespace test
} // namespace crashpad
+
« util/file/file_io_win.cc ('K') | « util/test/thread.h ('k') | util/test/thread_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698