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

Unified Diff: chrome/test/automation/automation_proxy_uitest.cc

Issue 6042009: Added WARN_UNUSED_RESULT to ScopedTempDir methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge with trunk Created 9 years, 11 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 | « chrome/service/service_utility_process_host.cc ('k') | chrome/test/automation/proxy_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/automation_proxy_uitest.cc
diff --git a/chrome/test/automation/automation_proxy_uitest.cc b/chrome/test/automation/automation_proxy_uitest.cc
index 60830e038184151a5461bd8a0415b94f6dcfc369..f75894a47d11465199d96221797335b6eeec7722 100644
--- a/chrome/test/automation/automation_proxy_uitest.cc
+++ b/chrome/test/automation/automation_proxy_uitest.cc
@@ -1575,8 +1575,10 @@ class AutomationProxySnapshotTest : public UITest {
protected:
AutomationProxySnapshotTest() {
dom_automation_enabled_ = true;
- snapshot_dir_.CreateUniqueTempDir();
- snapshot_path_ = snapshot_dir_.path().AppendASCII("snapshot.png");
+ if (!snapshot_dir_.CreateUniqueTempDir())
+ ADD_FAILURE() << "Unable to create temporary directory";
+ else
+ snapshot_path_ = snapshot_dir_.path().AppendASCII("snapshot.png");
}
// Asserts that the given png file can be read and decoded into the given
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/test/automation/proxy_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698