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

Unified Diff: ash/mus/bridge/wm_window_mus_test_api.h

Issue 2539363005: Converts ash to use aura-mus (Closed)
Patch Set: add overrides Created 4 years 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 | « ash/mus/bridge/wm_window_mus.cc ('k') | ash/mus/bridge/wm_window_mus_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_window_mus_test_api.h
diff --git a/ash/mus/bridge/wm_window_mus_test_api.h b/ash/mus/bridge/wm_window_mus_test_api.h
index aa064861aa1bc303ffc101cbe23bd7ffbd8e6c46..b346d84c0dcd2ecea112ba10a16575536c17c1e4 100644
--- a/ash/mus/bridge/wm_window_mus_test_api.h
+++ b/ash/mus/bridge/wm_window_mus_test_api.h
@@ -12,6 +12,22 @@ namespace mus {
class WmWindowMusTestApi {
public:
+ // Used by tests to set the default value of
+ // |WmWindowMus::default_use_empty_minimum_size_for_testing_|. This is needed
+ // as tests don't have a good way to reset the value of
+ // |use_empty_minimum_size_for_testing_| before the minimum size is queried.
+ class GlobalMinimumSizeLock {
+ public:
+ GlobalMinimumSizeLock();
+ ~GlobalMinimumSizeLock();
+
+ private:
+ // Number of instances of GlobalMinimumSizeLock that have been created.
+ static int instance_count_;
+
+ DISALLOW_COPY_AND_ASSIGN(GlobalMinimumSizeLock);
+ };
+
explicit WmWindowMusTestApi(WmWindow* window)
: WmWindowMusTestApi(WmWindowMus::AsWmWindowMus(window)) {}
explicit WmWindowMusTestApi(WmWindowMus* window) : window_(window) {}
@@ -22,6 +38,8 @@ class WmWindowMusTestApi {
}
private:
+ static void SetDefaultUseEmptyMinimumSizeForTesting(bool value);
+
WmWindowMus* window_;
DISALLOW_COPY_AND_ASSIGN(WmWindowMusTestApi);
« no previous file with comments | « ash/mus/bridge/wm_window_mus.cc ('k') | ash/mus/bridge/wm_window_mus_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698