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

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: release load 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
« no previous file with comments | « util/test/thread.h ('k') | util/test/thread_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..55d449858bed33977e06d740ab0b5b5095d414d4 100644
--- a/util/test/scoped_temp_dir.cc
+++ b/util/test/thread.cc
@@ -12,16 +12,18 @@
// 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
« no previous file with comments | « 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