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

Unified Diff: ui/aura/test/env_test_helper.h

Issue 2759463002: aura-mus: create an interactive ui test for drag and drop. (Closed)
Patch Set: General cleanup. Created 3 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
Index: ui/aura/test/env_test_helper.h
diff --git a/ui/aura/test/env_test_helper.h b/ui/aura/test/env_test_helper.h
index 321615875800796eebb8f422d6cab3c8d0345efa..20e7277689514ac4be544d44e64797ba77164186 100644
--- a/ui/aura/test/env_test_helper.h
+++ b/ui/aura/test/env_test_helper.h
@@ -30,7 +30,11 @@ class EnvTestHelper {
env_->is_touch_down_ = false;
}
- void SetMode(Env::Mode mode) { env_->mode_ = mode; }
+ void SetMode(Env::Mode mode) {
+ env_->mode_ = mode;
+ if (mode == Env::Mode::MUS)
+ env_->EnableMusOSExchangeDataProvider();
+ }
// This circumvents the DCHECKs in Env::SetWindowTreeClient() and should
// only be used for tests where Env is long lived.

Powered by Google App Engine
This is Rietveld 408576698