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

Unified Diff: ui/message_center/views/notifier_settings_view_unittest.cc

Issue 1878973002: [reland] Makes MaterialDesignController initialization explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made it possible to restore MaterialDesignController state after each test case (nits) 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
« no previous file with comments | « ui/message_center/views/message_center_view_unittest.cc ('k') | ui/shell_dialogs/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notifier_settings_view_unittest.cc
diff --git a/ui/message_center/views/notifier_settings_view_unittest.cc b/ui/message_center/views/notifier_settings_view_unittest.cc
index 50363e68d53f6d62a57c6767ce77f8885b56e1c6..9be54ac5ac11446130320924b509140584d74d9b 100644
--- a/ui/message_center/views/notifier_settings_view_unittest.cc
+++ b/ui/message_center/views/notifier_settings_view_unittest.cc
@@ -9,6 +9,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/message_center/fake_notifier_settings_provider.h"
#include "ui/message_center/views/notifier_settings_view.h"
+#include "ui/views/test/views_test_base.h"
namespace message_center {
@@ -58,7 +59,7 @@ class TestingNotifierSettingsProvider
} // namespace
-class NotifierSettingsViewTest : public testing::Test {
+class NotifierSettingsViewTest : public views::ViewsTestBase {
public:
NotifierSettingsViewTest();
~NotifierSettingsViewTest() override;
@@ -83,6 +84,7 @@ NotifierSettingsViewTest::NotifierSettingsViewTest() {}
NotifierSettingsViewTest::~NotifierSettingsViewTest() {}
void NotifierSettingsViewTest::SetUp() {
+ views::ViewsTestBase::SetUp();
std::vector<Notifier*> notifiers;
notifiers.push_back(NewNotifier("id", "title", /*enabled=*/true));
notifiers.push_back(NewNotifier("id2", "other title", /*enabled=*/false));
@@ -95,6 +97,7 @@ void NotifierSettingsViewTest::SetUp() {
void NotifierSettingsViewTest::TearDown() {
notifier_settings_view_.reset();
settings_provider_.reset();
+ views::ViewsTestBase::TearDown();
}
NotifierSettingsView* NotifierSettingsViewTest::GetView() const {
« no previous file with comments | « ui/message_center/views/message_center_view_unittest.cc ('k') | ui/shell_dialogs/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698