diff options
author | slan <slan@chromium.org> | 2015-12-08 16:59:31 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-09 01:00:51 +0000 |
commit | ef83eab02623a35a59fe181addb2fae1b0436efc (patch) | |
tree | a1fff2b064d1fc781cce2ba50a833b8326ba4570 /chromecast/chromecast.gyp | |
parent | 9bcbd89f5dee5a747d7643e0e4bd31c73140b22a (diff) | |
download | chromium_src-ef83eab02623a35a59fe181addb2fae1b0436efc.zip chromium_src-ef83eab02623a35a59fe181addb2fae1b0436efc.tar.gz chromium_src-ef83eab02623a35a59fe181addb2fae1b0436efc.tar.bz2 |
[Chromecast] Use ScopedTemp[File|Dir] in tests.
Files and directories created in a test should be removed as soon as the
test is done executing. Replace all uses of
base::CreateNewTempDirectory() with base::ScopedTempDir. Also introduce
a ScopedTempFile to ensure automatic clean-up of files created for
testing.
BUG=561597
Bug: b/22953577
Review URL: https://codereview.chromium.org/1484713003
Cr-Commit-Position: refs/heads/master@{#363875}
Diffstat (limited to 'chromecast/chromecast.gyp')
-rw-r--r-- | chromecast/chromecast.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chromecast/chromecast.gyp b/chromecast/chromecast.gyp index 87988e6..1237306 100644 --- a/chromecast/chromecast.gyp +++ b/chromecast/chromecast.gyp @@ -111,6 +111,8 @@ 'base/pref_names.h', 'base/process_utils.cc', 'base/process_utils.h', + 'base/scoped_temp_file.cc', + 'base/scoped_temp_file.h', 'base/serializers.cc', 'base/serializers.h', 'base/system_time_change_notifier.cc', |