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

Unified Diff: extensions/renderer/mojo/stash_client_unittest.cc

Issue 2410743002: Remove the mojo serial interfaces and related infrastructure. (Closed)
Patch Set: Created 4 years, 2 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 | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/resources/data_receiver.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/mojo/stash_client_unittest.cc
diff --git a/extensions/renderer/mojo/stash_client_unittest.cc b/extensions/renderer/mojo/stash_client_unittest.cc
deleted file mode 100644
index 4d5e953be96424494a053e7b40284afc3447c95f..0000000000000000000000000000000000000000
--- a/extensions/renderer/mojo/stash_client_unittest.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <vector>
-
-#include "base/macros.h"
-#include "extensions/browser/mojo/stash_backend.h"
-#include "extensions/common/mojo/stash.mojom.h"
-#include "extensions/renderer/api_test_base.h"
-#include "gin/dictionary.h"
-#include "grit/extensions_renderer_resources.h"
-#include "mojo/public/cpp/bindings/lib/message_builder.h"
-
-// A test launcher for tests for the stash client defined in
-// extensions/test/data/stash_client_unittest.js.
-
-namespace extensions {
-class StashClientTest : public ApiTestBase {
- public:
- StashClientTest() {}
-
- void SetUp() override {
- ApiTestBase::SetUp();
- stash_backend_.reset(new StashBackend(base::Closure()));
- PrepareEnvironment(api_test_env());
- }
-
- void PrepareEnvironment(ApiTestEnvironment* env) {
- env->interface_provider()->AddInterface(base::Bind(
- &StashBackend::BindToRequest, base::Unretained(stash_backend_.get())));
- }
-
- std::unique_ptr<StashBackend> stash_backend_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(StashClientTest);
-};
-
-// https://crbug.com/599898
-#if defined(LEAK_SANITIZER)
-#define MAYBE_StashAndRestore DISABLED_StashAndRestore
-#else
-#define MAYBE_StashAndRestore StashAndRestore
-#endif
-// Test that stashing and restoring work correctly.
-TEST_F(StashClientTest, MAYBE_StashAndRestore) {
- ASSERT_NO_FATAL_FAILURE(RunTest("stash_client_unittest.js", "testStash"));
- std::unique_ptr<ModuleSystemTestEnvironment> restore_test_env(
- CreateEnvironment());
- ApiTestEnvironment restore_environment(restore_test_env.get());
- PrepareEnvironment(&restore_environment);
- restore_environment.RunTest("stash_client_unittest.js", "testRetrieve");
-}
-
-} // namespace extensions
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/resources/data_receiver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698