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

Unified Diff: services/shell/public/cpp/tests/interface_registry_unittest.cc

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « services/shell/public/cpp/shell_test.h ('k') | services/shell/public/interfaces/capabilities.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/tests/interface_registry_unittest.cc
diff --git a/services/shell/public/cpp/tests/interface_registry_unittest.cc b/services/shell/public/cpp/tests/interface_registry_unittest.cc
index c7719d39c0ad54663e748c12d1fc1f56c8868e62..614248f4fe42cc7237c97f8ddce3a6720ba4c26b 100644
--- a/services/shell/public/cpp/tests/interface_registry_unittest.cc
+++ b/services/shell/public/cpp/tests/interface_registry_unittest.cc
@@ -4,12 +4,11 @@
#include "services/shell/public/cpp/interface_registry.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "services/shell/public/cpp/interface_binder.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace mojo {
+namespace shell {
namespace internal {
namespace {
@@ -19,7 +18,7 @@ class TestBinder : public InterfaceBinder {
~TestBinder() override { (*delete_count_)++; }
void BindInterface(Connection* connection,
const std::string& interface_name,
- ScopedMessagePipeHandle client_handle) override {}
+ mojo::ScopedMessagePipeHandle client_handle) override {}
private:
int* delete_count_;
@@ -39,7 +38,7 @@ TEST(InterfaceRegistryTest, Ownership) {
// Removal.
{
- scoped_ptr<InterfaceRegistry> registry(new InterfaceRegistry(nullptr));
+ std::unique_ptr<InterfaceRegistry> registry(new InterfaceRegistry(nullptr));
InterfaceBinder* b = new TestBinder(&delete_count);
InterfaceRegistry::TestApi test_api(registry.get());
test_api.SetInterfaceBinderForName(b, "TC1");
@@ -70,4 +69,4 @@ TEST(InterfaceRegistryTest, Ownership) {
} // namespace
} // namespace internal
-} // namespace mojo
+} // namespace shell
« no previous file with comments | « services/shell/public/cpp/shell_test.h ('k') | services/shell/public/interfaces/capabilities.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698