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

Unified Diff: ash/test/ash_md_test_base.h

Issue 2165693002: Fix tests in when MD is set to EXPERIMENTAL by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: ash/test/ash_md_test_base.h
diff --git a/ash/test/ash_md_test_base.h b/ash/test/ash_md_test_base.h
index 51a6186d09399b4b2184985417f7e18320a8af94..1e34a402c733235fc712842bfb8d6d0d062ed45d 100644
--- a/ash/test/ash_md_test_base.h
+++ b/ash/test/ash_md_test_base.h
@@ -24,6 +24,7 @@ class AshMDTestBase
void TearDown() override;
int GetMdMaximizedWindowHeightOffset();
+ int GetMdAutoHiddenShelfHeightOffset();
private:
std::unique_ptr<MaterialDesignControllerTestAPI> material_design_state_;
@@ -32,6 +33,10 @@ class AshMDTestBase
// adjust the expected height of a maximized window.
int md_maximized_window_height_offset_ = 0;
+ // The material design auto hidden shelf is shorter (by 3) so use this offset
+ // to adjust the display/root window size.
+ int md_auto_hidden_shelf_height_offset_ = 0;
+
DISALLOW_COPY_AND_ASSIGN(AshMDTestBase);
};

Powered by Google App Engine
This is Rietveld 408576698