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

Unified Diff: ui/views/mus/platform_test_helper_mus.cc

Issue 1910043002: Provide capability classes from Mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/views/mus/BUILD.gn ('k') | ui/views/mus/screen_mus_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/platform_test_helper_mus.cc
diff --git a/ui/views/mus/platform_test_helper_mus.cc b/ui/views/mus/platform_test_helper_mus.cc
index 023c53059a2c4c658465a3f70d30c9323a5adba5..71f9ff576609af3770b18712d5ec0017eadbb695 100644
--- a/ui/views/mus/platform_test_helper_mus.cc
+++ b/ui/views/mus/platform_test_helper_mus.cc
@@ -20,7 +20,7 @@ using shell::BackgroundShell;
namespace views {
namespace {
-const char kTestName[] = "mojo:test-app";
+const char kTestName[] = "exe:views_mus_unittests";
class DefaultShellClient : public shell::ShellClient {
public:
@@ -31,20 +31,11 @@ class DefaultShellClient : public shell::ShellClient {
DISALLOW_COPY_AND_ASSIGN(DefaultShellClient);
};
-std::unique_ptr<shell::TestCatalogStore> BuildTestCatalogStore() {
- std::unique_ptr<base::ListValue> apps(new base::ListValue);
- apps->Append(shell::BuildPermissiveSerializedAppInfo(kTestName, "test"));
- return base::WrapUnique(new shell::TestCatalogStore(std::move(apps)));
-}
-
class PlatformTestHelperMus : public PlatformTestHelper {
public:
PlatformTestHelperMus() {
background_shell_.reset(new BackgroundShell);
- std::unique_ptr<BackgroundShell::InitParams> init_params(
- new BackgroundShell::InitParams);
- init_params->catalog_store = BuildTestCatalogStore();
- background_shell_->Init(std::move(init_params));
+ background_shell_->Init(nullptr);
shell_client_.reset(new DefaultShellClient);
shell_connection_.reset(new shell::ShellConnection(
shell_client_.get(),
« no previous file with comments | « ui/views/mus/BUILD.gn ('k') | ui/views/mus/screen_mus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698