Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: services/shell/tests/connect/connect_unittest.cc

Issue 1871223003: Use ShellClientFactory interface to load mojo:profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/shell/tests/connect/connect_test.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/connect/connect_unittest.cc
diff --git a/services/shell/tests/connect/connect_unittest.cc b/services/shell/tests/connect/connect_unittest.cc
index 7ea19b4829829b99dd111f05c2b3e0a568f43088..e94da0e5e57fb3fd18164ed0e4b318b4487e2af2 100644
--- a/services/shell/tests/connect/connect_unittest.cc
+++ b/services/shell/tests/connect/connect_unittest.cc
@@ -249,7 +249,8 @@ TEST_F(ConnectTest, PackagedApp) {
// Ask the target application to attempt to connect to a third application
// provided by a package whose id is permitted by the primary target's
// CapabilityFilter but whose package is not. The connection should be
-// blocked and the returned title should be "uninitialized".
+// allowed regardless of the target's CapabilityFilter with respect to the
+// package.
TEST_F(ConnectTest, BlockedPackage) {
scoped_ptr<Connection> connection = connector()->Connect(kTestAppName);
test::mojom::StandaloneAppPtr standalone_app;
@@ -259,7 +260,7 @@ TEST_F(ConnectTest, BlockedPackage) {
standalone_app->ConnectToAllowedAppInBlockedPackage(
base::Bind(&ReceiveOneString, &title, &run_loop));
run_loop.Run();
- EXPECT_EQ("uninitialized", title);
+ EXPECT_EQ("A", title);
}
// BlockedInterface should not be exposed to this application because it is not
« no previous file with comments | « services/shell/tests/connect/connect_test.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698