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

Side by Side Diff: chrome/browser/supervised_user/experimental/safe_search_url_reporter_unittest.cc

Issue 1878143002: Convert //chrome/browser/supervised_user from scoped_ptr to std::unique_ptr (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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/memory/scoped_ptr.h" 5 #include "chrome/browser/supervised_user/experimental/safe_search_url_reporter.h "
6
7 #include <memory>
8
6 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
7 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
8 #include "base/values.h" 11 #include "base/values.h"
9 #include "chrome/browser/supervised_user/experimental/safe_search_url_reporter.h "
10 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" 12 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
11 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
12 #include "net/url_request/test_url_fetcher_factory.h" 14 #include "net/url_request/test_url_fetcher_factory.h"
13 #include "net/url_request/url_request_test_util.h" 15 #include "net/url_request/url_request_test_util.h"
14 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 18
17 namespace { 19 namespace {
18 20
19 const char kAccountId[] = "account@gmail.com"; 21 const char kAccountId[] = "account@gmail.com";
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 TEST_F(SafeSearchURLReporterTest, NetworkError) { 106 TEST_F(SafeSearchURLReporterTest, NetworkError) {
105 CreateRequest(0, GURL("http://google.com")); 107 CreateRequest(0, GURL("http://google.com"));
106 108
107 EXPECT_EQ(1U, token_service_.GetPendingRequests().size()); 109 EXPECT_EQ(1U, token_service_.GetPendingRequests().size());
108 110
109 IssueAccessTokens(); 111 IssueAccessTokens();
110 112
111 EXPECT_CALL(*this, OnRequestCreated(false)); 113 EXPECT_CALL(*this, OnRequestCreated(false));
112 SendFailedResponse(0); 114 SendFailedResponse(0);
113 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698