Lines Matching refs:coordinator
42 Coordinator coordinator; in TEST_F() local
45 EXPECT_EQ(OK, coordinator.addPackagePath("a.b", "a1/b1", &error)); in TEST_F()
47 EXPECT_NE(OK, coordinator.addPackagePath("a.b", "a2/b2/", &error)); in TEST_F()
50 coordinator.addDefaultPackagePath("a.b", "a3/b3/"); // should take path above in TEST_F()
51 coordinator.addDefaultPackagePath("a.c", "a4/b4/"); // should succeed in TEST_F()
53 EXPECT_EQ_OK("a.b", coordinator.getPackageRoot, FQName("a.b.foo", "1.0")); in TEST_F()
54 EXPECT_EQ_OK("a.c", coordinator.getPackageRoot, FQName("a.c.foo.bar", "1.0", "IFoo")); in TEST_F()
57 EXPECT_EQ_OK("a1/b1/foo/1.0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), false, in TEST_F()
59 EXPECT_EQ_OK("a4/b4/foo/bar/1.0/", coordinator.getPackagePath, in TEST_F()
61 EXPECT_EQ_OK("a1/b1/foo/V1_0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), false, in TEST_F()
63 EXPECT_EQ_OK("a4/b4/foo/bar/V1_0/", coordinator.getPackagePath, in TEST_F()
65 EXPECT_EQ_OK("foo/1.0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), true, false); in TEST_F()
66 EXPECT_EQ_OK("foo/bar/1.0/", coordinator.getPackagePath, FQName("a.c.foo.bar", "1.0", "IFoo"), in TEST_F()
68 EXPECT_EQ_OK("foo/V1_0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), true, true); in TEST_F()
69 EXPECT_EQ_OK("foo/bar/V1_0/", coordinator.getPackagePath, FQName("a.c.foo.bar", "1.0", "IFoo"), in TEST_F()
76 Coordinator coordinator; in TEST_F() local
77 coordinator.setOutputPath("foo/"); in TEST_F()
78 coordinator.setRootPath("bar/"); in TEST_F()
81 EXPECT_EQ(OK, coordinator.addPackagePath("a.b", "a1/b1", &error)); in TEST_F()
87 EXPECT_EQ_OK("foo/x.y", coordinator.getFilepath, kName, Location::DIRECT, "x.y"); in TEST_F()
88 EXPECT_EQ_OK("foo/a1/b1/c/1.2/x.y", coordinator.getFilepath, kName, Location::PACKAGE_ROOT, in TEST_F()
90 EXPECT_EQ_OK("foo/a/b/c/1.2/x.y", coordinator.getFilepath, kName, Location::GEN_OUTPUT, "x.y"); in TEST_F()
91 EXPECT_EQ_OK("foo/a/b/c/V1_2/x.y", coordinator.getFilepath, kName, Location::GEN_SANITIZED, in TEST_F()
95 EXPECT_EQ_OK("foo/", coordinator.getFilepath, kName, Location::DIRECT, ""); in TEST_F()
96 EXPECT_EQ_OK("foo/a1/b1/c/1.2/", coordinator.getFilepath, kName, Location::PACKAGE_ROOT, ""); in TEST_F()
97 EXPECT_EQ_OK("foo/a/b/c/1.2/", coordinator.getFilepath, kName, Location::GEN_OUTPUT, ""); in TEST_F()
98 EXPECT_EQ_OK("foo/a/b/c/V1_2/", coordinator.getFilepath, kName, Location::GEN_SANITIZED, ""); in TEST_F()
122 Coordinator coordinator; in TEST_F() local
128 coordinator.parseOptions(options.size(), argv, "", [&](int /* res */, char* /* arg */) { in TEST_F()
133 EXPECT_EQ("~/", coordinator.getRootPath()); in TEST_F()
138 Coordinator coordinator; in TEST_F() local
144 EXPECT_DEATH(coordinator.parseOptions(options.size(), argv, "", in TEST_F()
154 Coordinator coordinator; in TEST_F() local
160 coordinator.parseOptions(options.size(), argv, "", [&](int /* res */, char* /* arg */) { in TEST_F()
168 coordinator.getPackageRoot(FQName("android.hardware.tests.Baz", "1.0"), &root)); in TEST_F()
174 Coordinator coordinator; in TEST_F() local
184 coordinator.parseOptions(options.size(), argv, optstring, [&](int res, char* arg) { in TEST_F()