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

Unified Diff: ash/test/material_design_controller_test_api.h

Issue 1921133002: Adds ash::MaterialDesignController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ash/test/material_design_controller_test_api.h
diff --git a/ui/base/test/material_design_controller_test_api.h b/ash/test/material_design_controller_test_api.h
similarity index 63%
copy from ui/base/test/material_design_controller_test_api.h
copy to ash/test/material_design_controller_test_api.h
index 3eb53a349f5585ad03e677b5e84478335a66b271..45c0203cdca346305c31439c94f0ae6aa41d250a 100644
--- a/ui/base/test/material_design_controller_test_api.h
+++ b/ash/test/material_design_controller_test_api.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_BASE_TEST_MATERIAL_DESIGN_CONTROLLER_TEST_API_H_
-#define UI_BASE_TEST_MATERIAL_DESIGN_CONTROLLER_TEST_API_H_
+#ifndef ASH_TEST_MATERIAL_DESIGN_CONTROLLER_TEST_API_H_
+#define ASH_TEST_MATERIAL_DESIGN_CONTROLLER_TEST_API_H_
+#include "ash/material_design/material_design_controller.h"
#include "base/macros.h"
-#include "ui/base/material_design/material_design_controller.h"
-namespace ui {
+namespace ash {
namespace test {
// Test API to access the internal state of the MaterialDesignController class.
@@ -16,20 +16,21 @@ namespace test {
// state in MaterialDesignController class.
class MaterialDesignControllerTestAPI {
public:
- explicit MaterialDesignControllerTestAPI(MaterialDesignController::Mode mode);
+ explicit MaterialDesignControllerTestAPI(bool mode);
~MaterialDesignControllerTestAPI();
// Wrapper functions for MaterialDesignController internal functions.
+ static bool DefaultMode();
static void Uninitialize();
private:
- const MaterialDesignController::Mode previous_mode_;
+ const bool previous_mode_;
const bool previous_initialized_;
DISALLOW_COPY_AND_ASSIGN(MaterialDesignControllerTestAPI);
};
} // namespace test
-} // namespace ui
+} // namespace ash
-#endif // UI_BASE_TEST_MATERIAL_DESIGN_CONTROLLER_TEST_API_H_
+#endif // ASH_TEST_MATERIAL_DESIGN_CONTROLLER_TEST_API_H_

Powered by Google App Engine
This is Rietveld 408576698