Add tests for unsupported MIME type usage

Apps sometimes use unsupported MIME type or empty/null MIME type. When
legacy apps use unsupported MIME type, even though we don't encourage
use of unsupported MIME type, we can't throw error to retain legacy
behavior. So, we try to guess the MIME type from file extension or from
the default MIME type of the given uri. Added tests to verify the same.

Bug: 157127219
Test: atest CtsScopedStorageHostTest#testInsertWithUnsupportedMimeType
Change-Id: I5dc51c6006fd8ec927b5af5630e22616c8c2c3e9
4 files changed