summaryrefslogtreecommitdiffstats
path: root/chromecast/chromecast.gyp
diff options
context:
space:
mode:
authorslan <slan@chromium.org>2015-12-08 16:59:31 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-09 01:00:51 +0000
commitef83eab02623a35a59fe181addb2fae1b0436efc (patch)
treea1fff2b064d1fc781cce2ba50a833b8326ba4570 /chromecast/chromecast.gyp
parent9bcbd89f5dee5a747d7643e0e4bd31c73140b22a (diff)
downloadchromium_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.gyp2
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',