| 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 465b61023a1afc3f33462a0afa769b24cf2fc91f..3856cb16d2d1cf2abe6a82487bf04684f1a79d4f 100644
|
| --- a/chrome/test/automation/automation_proxy_uitest.cc
|
| +++ b/chrome/test/automation/automation_proxy_uitest.cc
|
| @@ -1569,8 +1569,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
|
|
|