Dependency cleanup: move rule definition modules into cros.factory.test.rules.

Some modules in cros.factory.test (registration_codes, phase, privacy,
branding) are made to define test-related rules and will be shared by gooftool
and hwid. These modules should have same (or higher) dependency group as hwid
and gooftoo.

This change moves those modules into cros.factory.test.rules and list it in
same level as cros.factory.test.l10n, with dependency group name 'test-base'.
hwid and gooftool are moved to group 'test-cros'.

BUG=chromium:403712
TEST=run tools/deps.py on changed files, make test

Change-Id: I458b073992a29083bdd4decc5eb85bd06be1b739
Reviewed-on: https://chromium-review.googlesource.com/321880
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
diff --git a/py/tools/regcode.py b/py/tools/regcode.py
index d705617..653b7e0 100755
--- a/py/tools/regcode.py
+++ b/py/tools/regcode.py
@@ -18,8 +18,8 @@
 from cros.factory.hacked_argparse import CmdArg, Command, ParseCmdline
 from cros.factory.proto import reg_code_pb2
 from cros.factory.test import dut as dut_module
-from cros.factory.test import registration_codes
-from cros.factory.test.registration_codes import RegistrationCode
+from cros.factory.test.rules import registration_codes
+from cros.factory.test.rules.registration_codes import RegistrationCode
 from cros.factory.tools.build_board import BuildBoard
 from cros.factory.utils import sys_utils