Use PathService to get temp dir name for IPC unittests.

1) Use PathService() instead of hard-coded "/var/tmp" to get temp dir name.
2) Remove socket files at the end of unittests if it is created by NAMED_SERVER mode.

These unittests fail for Chromecast.

BUG=

Review URL: https://codereview.chromium.org/862823003

Cr-Commit-Position: refs/heads/master@{#312635}


CrOS-Libchrome-Original-Commit: e2295ebec1d8c0acfb66672a6dada93fd342ad9d
2 files changed
tree: bb9a60ba978906341e79cd283079a409c7a335c0
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/