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

Side by Side Diff: components/test_runner/web_test_interfaces.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 4 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/test_runner/web_test_interfaces.h" 5 #include "components/test_runner/web_test_interfaces.h"
6 6
7 #include <utility>
8
7 #include "components/test_runner/app_banner_client.h" 9 #include "components/test_runner/app_banner_client.h"
8 #include "components/test_runner/mock_web_audio_device.h" 10 #include "components/test_runner/mock_web_audio_device.h"
9 #include "components/test_runner/mock_web_media_stream_center.h" 11 #include "components/test_runner/mock_web_media_stream_center.h"
10 #include "components/test_runner/mock_web_midi_accessor.h" 12 #include "components/test_runner/mock_web_midi_accessor.h"
11 #include "components/test_runner/mock_webrtc_peer_connection_handler.h" 13 #include "components/test_runner/mock_webrtc_peer_connection_handler.h"
12 #include "components/test_runner/test_interfaces.h" 14 #include "components/test_runner/test_interfaces.h"
13 #include "components/test_runner/test_runner.h" 15 #include "components/test_runner/test_runner.h"
14 16
15 using namespace blink; 17 using namespace blink;
16 18
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 78 }
77 79
78 WebAudioDevice* WebTestInterfaces::CreateAudioDevice(double sample_rate) { 80 WebAudioDevice* WebTestInterfaces::CreateAudioDevice(double sample_rate) {
79 return new MockWebAudioDevice(sample_rate); 81 return new MockWebAudioDevice(sample_rate);
80 } 82 }
81 83
82 scoped_ptr<blink::WebAppBannerClient> 84 scoped_ptr<blink::WebAppBannerClient>
83 WebTestInterfaces::CreateAppBannerClient() { 85 WebTestInterfaces::CreateAppBannerClient() {
84 scoped_ptr<AppBannerClient> client(new AppBannerClient); 86 scoped_ptr<AppBannerClient> client(new AppBannerClient);
85 interfaces_->SetAppBannerClient(client.get()); 87 interfaces_->SetAppBannerClient(client.get());
86 return client.Pass(); 88 return std::move(client);
87 } 89 }
88 90
89 AppBannerClient* WebTestInterfaces::GetAppBannerClient() { 91 AppBannerClient* WebTestInterfaces::GetAppBannerClient() {
90 return interfaces_->GetAppBannerClient(); 92 return interfaces_->GetAppBannerClient();
91 } 93 }
92 94
93 } // namespace test_runner 95 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | components/translate/content/renderer/data_file_renderer_cld_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698