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 |