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

Unified Diff: shell/shell_test_base_unittest.cc

Issue 1074963002: Add some |using mojo::...;|s to //shell .cc files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « shell/shell_apptest.cc ('k') | shell/test/pingable_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/shell_test_base_unittest.cc
diff --git a/shell/shell_test_base_unittest.cc b/shell/shell_test_base_unittest.cc
index cc39cb5366cdcd016ae592fe688ade19de3a1f71..03d047df4fc6ea2081fc92638eb15bf0a42dda56 100644
--- a/shell/shell_test_base_unittest.cc
+++ b/shell/shell_test_base_unittest.cc
@@ -17,6 +17,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
+using mojo::Callback;
using mojo::test::ServiceReport;
using mojo::test::ServiceReportPtr;
using mojo::test::TestService;
@@ -243,11 +244,11 @@ TEST_F(ShellTestBaseTest, ConnectServiceAsClientOfSeparateApp) {
TestServicePtr service;
ConnectToService(test_app_url(), &service);
service->StartTrackingRequests(message_loop()->QuitWhenIdleClosure());
- service->Ping(mojo::Callback<void()>());
+ service->Ping(Callback<void()>());
message_loop()->Run();
for (int i = 0; i < 8; i++)
- service->Ping(mojo::Callback<void()>());
+ service->Ping(Callback<void()>());
service->Ping(message_loop()->QuitWhenIdleClosure());
message_loop()->Run();
@@ -273,7 +274,7 @@ TEST_F(ShellTestBaseTest, ConnectManyClientsAndServices) {
service->StartTrackingRequests(message_loop()->QuitWhenIdleClosure());
message_loop()->Run();
for (int i = 0; i < 5; i++)
- service->Ping(mojo::Callback<void()>());
+ service->Ping(Callback<void()>());
int64 time_result;
service->ConnectToAppAndGetTime("mojo:test_request_tracker_app",
SetAndQuit<int64>(&time_result));
@@ -282,10 +283,10 @@ TEST_F(ShellTestBaseTest, ConnectManyClientsAndServices) {
// Also make a few requests to the TimeService in the test_app.
ConnectToService(test_app_url(), &time_service);
time_service->StartTrackingRequests(message_loop()->QuitWhenIdleClosure());
- time_service->GetPartyTime(mojo::Callback<void(uint64_t)>());
+ time_service->GetPartyTime(Callback<void(uint64_t)>());
message_loop()->Run();
for (int i = 0; i < 18; i++)
- time_service->GetPartyTime(mojo::Callback<void(uint64_t)>());
+ time_service->GetPartyTime(Callback<void(uint64_t)>());
// Flush the tasks with one more to quit.
int64 party_time = 0;
time_service->GetPartyTime(SetAndQuit<int64>(&party_time));
« no previous file with comments | « shell/shell_apptest.cc ('k') | shell/test/pingable_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698