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

Unified Diff: mash/test/mash_test_suite.cc

Issue 2040453002: views/mus: Create the BitmapUploader only when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | « no previous file | ui/views/mus/native_widget_mus.h » ('j') | ui/views/mus/native_widget_mus.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/test/mash_test_suite.cc
diff --git a/mash/test/mash_test_suite.cc b/mash/test/mash_test_suite.cc
index baf2acb3600826e62cff29872e81f9fc74b6221d..fa8a6367dd52d63923819da8c8180aadfb479bcc 100644
--- a/mash/test/mash_test_suite.cc
+++ b/mash/test/mash_test_suite.cc
@@ -9,8 +9,6 @@
#include "ui/aura/env.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
-#include "ui/compositor/test/context_factories_for_test.h"
-#include "ui/gl/test/gl_surface_test_support.h"
namespace mash {
namespace test {
@@ -21,7 +19,6 @@ MashTestSuite::~MashTestSuite() {}
void MashTestSuite::Initialize() {
base::TestSuite::Initialize();
- gl::GLSurfaceTestSupport::InitializeOneOff();
// Load ash resources and en-US strings; not 'common' (Chrome) resources.
// TODO(msw): Check ResourceBundle::IsScaleFactorSupported; load 300% etc.
@@ -34,16 +31,11 @@ void MashTestSuite::Initialize() {
base::DiscardableMemoryAllocator::SetInstance(&discardable_memory_allocator_);
env_ = aura::Env::CreateInstance();
-
- const bool enable_pixel_output = false;
- env_->set_context_factory(
- ui::InitializeContextFactoryForTests(enable_pixel_output));
}
void MashTestSuite::Shutdown() {
env_.reset();
ui::ResourceBundle::CleanupSharedInstance();
- ui::TerminateContextFactoryForTests();
base::TestSuite::Shutdown();
}
« no previous file with comments | « no previous file | ui/views/mus/native_widget_mus.h » ('j') | ui/views/mus/native_widget_mus.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698