commit | 69c0f11da7a6009b89197c34aab5e51f19358eb0 | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Thu Nov 22 20:38:05 2018 +0900 |
committer | Jiyong Park <jiyong@google.com> | Tue Nov 27 18:00:39 2018 +0900 |
tree | 5d1e3a6fc3c7a172f7dfa2e89c9b87d621704925 | |
parent | 0a2126459672cd6d1441376082525a048da48210 [diff] |
ApexFile and ApexManifest share the lifecycle ApexManifest becomes a member of ApexFile. ApexManifest is parsed when ApexFile is opened. Also this change removes unique_ptr from the two classes. ApexFile::Open returns StatusOr<ApexFile> instead of StatusOr<unique_ptr<ApexFile>>, which requested us to do the double-dereferencing to use the ApexFile object. Test: atest apexservice_test Change-Id: Ic1eb685a4f920191bb4816e0c3f1efc9cc6e2d38