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

Unified Diff: services/window_manager/window_manager_apptest.cc

Issue 996533002: Remove hardcoded tests URLs from apptests. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Edit Created 5 years, 9 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/view_manager/view_manager_service_apptest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/window_manager/window_manager_apptest.cc
diff --git a/services/window_manager/window_manager_apptest.cc b/services/window_manager/window_manager_apptest.cc
index f4124103db100d180eecb5df0fc2a889e38da55b..818999f2b0201852118a76afc3534e8477e731b8 100644
--- a/services/window_manager/window_manager_apptest.cc
+++ b/services/window_manager/window_manager_apptest.cc
@@ -108,7 +108,7 @@ class WindowManagerApplicationTest : public test::ApplicationTestBase {
TEST_F(WindowManagerApplicationTest, Embed) {
EXPECT_EQ(nullptr, test_application_.root());
- EmbedApplicationWithURL("mojo:window_manager_apptests");
+ EmbedApplicationWithURL(application_impl()->url());
EXPECT_NE(nullptr, test_application_.root());
}
@@ -126,7 +126,7 @@ struct BoolCallback {
};
TEST_F(WindowManagerApplicationTest, SetCaptureFailsFromNonVM) {
- EmbedApplicationWithURL("mojo:window_manager_apptests");
+ EmbedApplicationWithURL(application_impl()->url());
bool callback_value = true;
base::RunLoop run_loop;
window_manager_->SetCapture(test_application_.root()->id(),
@@ -137,7 +137,7 @@ TEST_F(WindowManagerApplicationTest, SetCaptureFailsFromNonVM) {
}
TEST_F(WindowManagerApplicationTest, FocusWindowFailsFromNonVM) {
- EmbedApplicationWithURL("mojo:window_manager_apptests");
+ EmbedApplicationWithURL(application_impl()->url());
bool callback_value = true;
base::RunLoop run_loop;
window_manager_->FocusWindow(test_application_.root()->id(),
@@ -148,7 +148,7 @@ TEST_F(WindowManagerApplicationTest, FocusWindowFailsFromNonVM) {
}
TEST_F(WindowManagerApplicationTest, ActivateWindowFailsFromNonVM) {
- EmbedApplicationWithURL("mojo:window_manager_apptests");
+ EmbedApplicationWithURL(application_impl()->url());
bool callback_value = true;
base::RunLoop run_loop;
window_manager_->ActivateWindow(test_application_.root()->id(),
@@ -183,7 +183,7 @@ struct FocusedAndActiveViewsCallback {
};
TEST_F(WindowManagerApplicationTest, GetFocusedAndActiveViewsFailsWithoutFC) {
- EmbedApplicationWithURL("mojo:window_manager_apptests");
+ EmbedApplicationWithURL(application_impl()->url());
uint32 capture_view_id = -1;
uint32 focused_view_id = -1;
uint32 active_view_id = -1;
« no previous file with comments | « services/view_manager/view_manager_service_apptest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698