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

Unified Diff: services/shell/background/tests/background_shell_unittest.cc

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . 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 | « services/shell/background/background_shell.cc ('k') | services/shell/background/tests/test_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/background/tests/background_shell_unittest.cc
diff --git a/services/shell/background/tests/background_shell_unittest.cc b/services/shell/background/tests/background_shell_unittest.cc
index 039e16ba8b40371262883e838b37a23ceb72020d..9d9c4012d63bffc13b40a6c3e0ac7541f5817569 100644
--- a/services/shell/background/tests/background_shell_unittest.cc
+++ b/services/shell/background/tests/background_shell_unittest.cc
@@ -11,7 +11,7 @@
#include "services/shell/background/tests/test.mojom.h"
#include "services/shell/background/tests/test_catalog_store.h"
#include "services/shell/public/cpp/connector.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/shell/public/cpp/shell_connection.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -20,13 +20,13 @@ namespace {
const char kTestName[] = "mojo:test-app";
-class ShellClientImpl : public ShellClient {
+class ServiceImpl : public Service {
public:
- ShellClientImpl() {}
- ~ShellClientImpl() override {}
+ ServiceImpl() {}
+ ~ServiceImpl() override {}
private:
- DISALLOW_COPY_AND_ASSIGN(ShellClientImpl);
+ DISALLOW_COPY_AND_ASSIGN(ServiceImpl);
};
std::unique_ptr<TestCatalogStore> BuildTestCatalogStore() {
@@ -61,9 +61,9 @@ TEST(BackgroundShellTest, MAYBE_Basic) {
TestCatalogStore* store = store_ptr.get();
init_params->catalog_store = std::move(store_ptr);
background_shell.Init(std::move(init_params));
- ShellClientImpl shell_client;
+ ServiceImpl service;
ShellConnection shell_connection(
- &shell_client, background_shell.CreateShellClientRequest(kTestName));
+ &service, background_shell.CreateServiceRequest(kTestName));
mojom::TestServicePtr test_service;
shell_connection.connector()->ConnectToInterface(
"mojo:background_shell_test_app", &test_service);
« no previous file with comments | « services/shell/background/background_shell.cc ('k') | services/shell/background/tests/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698