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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Deleted LayoutDelegate and HarmonyLayoutDelegate. 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: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc
index 71208cbfc2501deb599f2a50a5ce703e6e5ff9de..23f80ffaacc454803ef1ff3853090b8a422ce615 100644
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc
@@ -3,12 +3,16 @@
// found in the LICENSE file.
#include "ash/test/ash_test_base.h"
+#include "ash/test/ash_test_helper.h"
+#include "ash/test/ash_test_views_delegate.h"
#include "base/macros.h"
#include "chrome/browser/extensions/test_extension_environment.h"
#include "chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h"
#include "chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.h"
+#include "chrome/browser/ui/views/harmony/chrome_views_layout_delegate.h"
#include "chrome/test/base/testing_profile.h"
#include "ui/views/controls/button/label_button.h"
+#include "ui/views/test/test_views_delegate.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_delegate.h"
@@ -26,6 +30,8 @@ class AppInfoDialogAshTest : public ash::test::AshTestBase {
// Overridden from testing::Test:
void SetUp() override {
ash::test::AshTestBase::SetUp();
+ ash_test_helper()->views_delegate()->set_layout_delegate(
+ base::MakeUnique<ChromeViewsLayoutDelegate>());
Peter Kasting 2017/04/04 02:08:51 I'm wondering how long this set could theoreticall
kylix_rd 2017/04/04 20:28:22 I don't think that is necessary since ash_test_hel
Peter Kasting 2017/04/06 08:13:36 Answer: only for one test. This entire class is c
widget_ = views::DialogDelegate::CreateDialogWidget(
new views::DialogDelegateView(), CurrentContext(), NULL);
dialog_ = new AppInfoDialog(

Powered by Google App Engine
This is Rietveld 408576698