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

Unified Diff: ui/native_theme/native_theme_mac_unittest.cc

Issue 2120273002: Initialize MaterialDesignController in NativeThemeMacTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixup for component build Created 4 years, 5 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/native_theme/native_theme.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_mac_unittest.cc
diff --git a/ui/native_theme/native_theme_mac_unittest.cc b/ui/native_theme/native_theme_mac_unittest.cc
index c7c92d6d861b437a9e013f65d580bca6ee9f49e4..094a5ecc133ab195f13c20088ecf49cef6b78b3c 100644
--- a/ui/native_theme/native_theme_mac_unittest.cc
+++ b/ui/native_theme/native_theme_mac_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ui/base/material_design/material_design_controller.h"
#include "ui/native_theme/native_theme_mac.h"
#include "base/mac/mac_util.h"
@@ -13,6 +14,7 @@ namespace ui {
// platforms Chrome supports, and that their colorspace and component count is
// sane.
TEST(NativeThemeMacTest, SystemColorsExist) {
+ MaterialDesignController::Initialize();
Peter Kasting 2016/07/06 20:57:07 Wouldn't we need this in the next test too? In fa
shrike 2016/07/07 19:40:47 I agree with pkasting@ that it should be more gene
NativeTheme* native_theme = NativeThemeMac::instance();
ASSERT_TRUE(native_theme);
for (int i = 0; i < NativeTheme::kColorId_NumColors; ++i) {
« no previous file with comments | « ui/native_theme/native_theme.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698