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

Unified Diff: chrome/browser/ui/app_list/speech_auth_helper_unittest.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (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
Index: chrome/browser/ui/app_list/speech_auth_helper_unittest.cc
diff --git a/chrome/browser/ui/app_list/speech_auth_helper_unittest.cc b/chrome/browser/ui/app_list/speech_auth_helper_unittest.cc
index 18c1ed6ac98862e07315b5849a8a8eb05a3f6bcc..a96ce0ec1c3e6d0ca0a61576af465b41e5d96214 100644
--- a/chrome/browser/ui/app_list/speech_auth_helper_unittest.cc
+++ b/chrome/browser/ui/app_list/speech_auth_helper_unittest.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/ui/app_list/speech_auth_helper.h"
+#include <memory>
#include <utility>
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/simple_test_clock.h"
#include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
@@ -46,12 +46,8 @@ class SpeechAuthHelperTest : public testing::Test {
ASSERT_TRUE(testing_profile_manager_->SetUp());
profile_ = testing_profile_manager_->CreateTestingProfile(
- kTestUser,
- scoped_ptr<syncable_prefs::PrefServiceSyncable>(),
- base::UTF8ToUTF16(kTestUser),
- 0,
- std::string(),
- factories);
+ kTestUser, std::unique_ptr<syncable_prefs::PrefServiceSyncable>(),
+ base::UTF8ToUTF16(kTestUser), 0, std::string(), factories);
// Set up the authenticated user name and ID.
SigninManagerFactory::GetForProfile(profile_)->SetAuthenticatedAccountInfo(
@@ -73,9 +69,9 @@ class SpeechAuthHelperTest : public testing::Test {
base::SimpleTestClock test_clock_;
content::TestBrowserThreadBundle thread_bundle;
- scoped_ptr<TestingProfileManager> testing_profile_manager_;
+ std::unique_ptr<TestingProfileManager> testing_profile_manager_;
Profile* profile_;
- scoped_ptr<SpeechAuthHelper> auth_helper_;
+ std::unique_ptr<SpeechAuthHelper> auth_helper_;
};
TEST_F(SpeechAuthHelperTest, TokenFetch) {
« no previous file with comments | « chrome/browser/ui/app_list/speech_auth_helper.h ('k') | chrome/browser/ui/app_list/speech_recognizer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698