diff options
| author | 2019-06-27 14:08:51 +0100 | |
|---|---|---|
| committer | 2019-07-01 16:15:07 +0100 | |
| commit | aebc02ab29648b5f4a69636222e3d80888a90dd3 (patch) | |
| tree | 3439f5de407d0544ec2f92588c92c297caf1275e /java/sdk_test.go | |
| parent | e65d84c84cca3d7193bce3d410840b72100b9fca (diff) | |
Allow neverallow rules to be defined by custom bootstrap_go_packages
* Adds a Rule interface to hide the rule struct and expose the mutator
functions.
* Makes the neverallow() function public as NeverAllow().
* Adds AddNeverAllowRules func to add more rules.
* Moves the population of the builtin rules to init() function.
Bug: 136159343
Test: m droid
      - changed a built in rule to cause build failure to ensure the
	    rules were still being applied, then reverted the change and
		ran 'm droid' again.
Change-Id: Ie3a4456d1f6bc12c5b4931bf698333275347fdf0
Merged-In: Ie3a4456d1f6bc12c5b4931bf698333275347fdf0
Diffstat (limited to 'java/sdk_test.go')
0 files changed, 0 insertions, 0 deletions