Fix several issues in CookieManagerTest

- Fix a mistaken assumption about how path matching
  works.
- Change a TreeMap to a LinkedHashMap, because TreeMaps
  are not required to support null keys.
- Change a bogus "equals" check for the version to a
  startsWith check.
- Change various tests re: the size of the output list.
  The specification doesn't require us to create separate
  Cookie headers for each cookie found in the store. It is
  free to concatenate the contents of matching cookies.
- Change tests that expected the addition of an empty list
  to the headers map when there are no matching cookies.
  The spec does not require this.

bug: 11689102

Change-Id: I341c301f18e410b983d010b5d2f14b3462901bf5
1 file changed