lock_screen_action_background_view_test_api.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_BACKGROUND_VIEW_TEST_API_H_
  5. #define ASH_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_BACKGROUND_VIEW_TEST_API_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/lock_screen_action/lock_screen_action_background_view.h"
  8. namespace views {
  9. class View;
  10. }
  11. namespace ash {
  12. class LockScreenActionBackgroundView;
  13. // Class that provides access to LockScreenActionBackgroundView implementation
  14. // details in tests.
  15. class ASH_EXPORT LockScreenActionBackgroundViewTestApi {
  16. public:
  17. explicit LockScreenActionBackgroundViewTestApi(
  18. LockScreenActionBackgroundView* action_background_view)
  19. : action_background_view_(action_background_view) {}
  20. LockScreenActionBackgroundViewTestApi(
  21. const LockScreenActionBackgroundViewTestApi&) = delete;
  22. LockScreenActionBackgroundViewTestApi& operator=(
  23. const LockScreenActionBackgroundViewTestApi&) = delete;
  24. ~LockScreenActionBackgroundViewTestApi() = default;
  25. views::View* GetBackground() {
  26. return action_background_view_->GetBackgroundView();
  27. }
  28. private:
  29. LockScreenActionBackgroundView* action_background_view_;
  30. };
  31. } // namespace ash
  32. #endif // ASH_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_BACKGROUND_VIEW_TEST_API_H_