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

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

Issue 1162583003: Credential Management: Rename 'LocalCredential' to 'PasswordCredential' (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drop
Patch Set: Fix. Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test_runner.h" 5 #include "components/test_runner/test_runner.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "components/test_runner/mock_credential_manager_client.h" 10 #include "components/test_runner/mock_credential_manager_client.h"
11 #include "components/test_runner/mock_web_speech_recognizer.h" 11 #include "components/test_runner/mock_web_speech_recognizer.h"
12 #include "components/test_runner/test_interfaces.h" 12 #include "components/test_runner/test_interfaces.h"
13 #include "components/test_runner/test_preferences.h" 13 #include "components/test_runner/test_preferences.h"
14 #include "components/test_runner/web_content_settings.h" 14 #include "components/test_runner/web_content_settings.h"
15 #include "components/test_runner/web_test_delegate.h" 15 #include "components/test_runner/web_test_delegate.h"
16 #include "components/test_runner/web_test_proxy.h" 16 #include "components/test_runner/web_test_proxy.h"
17 #include "gin/arguments.h" 17 #include "gin/arguments.h"
18 #include "gin/array_buffer.h" 18 #include "gin/array_buffer.h"
19 #include "gin/handle.h" 19 #include "gin/handle.h"
20 #include "gin/object_template_builder.h" 20 #include "gin/object_template_builder.h"
21 #include "gin/wrappable.h" 21 #include "gin/wrappable.h"
22 #include "third_party/WebKit/public/platform/WebBatteryStatus.h" 22 #include "third_party/WebKit/public/platform/WebBatteryStatus.h"
23 #include "third_party/WebKit/public/platform/WebCanvas.h" 23 #include "third_party/WebKit/public/platform/WebCanvas.h"
24 #include "third_party/WebKit/public/platform/WebData.h" 24 #include "third_party/WebKit/public/platform/WebData.h"
25 #include "third_party/WebKit/public/platform/WebLocalCredential.h" 25 #include "third_party/WebKit/public/platform/WebPasswordCredential.h"
26 #include "third_party/WebKit/public/platform/WebPoint.h" 26 #include "third_party/WebKit/public/platform/WebPoint.h"
27 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" 27 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h"
28 #include "third_party/WebKit/public/platform/WebURLResponse.h" 28 #include "third_party/WebKit/public/platform/WebURLResponse.h"
29 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eMotionData.h" 29 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eMotionData.h"
30 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationData.h" 30 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationData.h"
31 #include "third_party/WebKit/public/web/WebArrayBuffer.h" 31 #include "third_party/WebKit/public/web/WebArrayBuffer.h"
32 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" 32 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h"
33 #include "third_party/WebKit/public/web/WebBindings.h" 33 #include "third_party/WebKit/public/web/WebBindings.h"
34 #include "third_party/WebKit/public/web/WebDataSource.h" 34 #include "third_party/WebKit/public/web/WebDataSource.h"
35 #include "third_party/WebKit/public/web/WebDocument.h" 35 #include "third_party/WebKit/public/web/WebDocument.h"
(...skipping 2858 matching lines...) Expand 10 before | Expand all | Expand 10 after
2894 2894
2895 bool TestRunner::WasMockSpeechRecognitionAborted() { 2895 bool TestRunner::WasMockSpeechRecognitionAborted() {
2896 return proxy_->GetSpeechRecognizerMock()->WasAborted(); 2896 return proxy_->GetSpeechRecognizerMock()->WasAborted();
2897 } 2897 }
2898 2898
2899 void TestRunner::AddMockCredentialManagerResponse(const std::string& id, 2899 void TestRunner::AddMockCredentialManagerResponse(const std::string& id,
2900 const std::string& name, 2900 const std::string& name,
2901 const std::string& avatar, 2901 const std::string& avatar,
2902 const std::string& password) { 2902 const std::string& password) {
2903 proxy_->GetCredentialManagerClientMock()->SetResponse( 2903 proxy_->GetCredentialManagerClientMock()->SetResponse(
2904 new WebLocalCredential(WebString::fromUTF8(id), 2904 new WebPasswordCredential(WebString::fromUTF8(id),
2905 WebString::fromUTF8(name), 2905 WebString::fromUTF8(password),
2906 WebURL(GURL(avatar)), 2906 WebString::fromUTF8(name),
2907 WebString::fromUTF8(password))); 2907 WebURL(GURL(avatar))));
2908 } 2908 }
2909 2909
2910 void TestRunner::AddWebPageOverlay() { 2910 void TestRunner::AddWebPageOverlay() {
2911 if (web_view_ && !page_overlay_) { 2911 if (web_view_ && !page_overlay_) {
2912 page_overlay_ = new TestPageOverlay; 2912 page_overlay_ = new TestPageOverlay;
2913 web_view_->addPageOverlay(page_overlay_, 0); 2913 web_view_->addPageOverlay(page_overlay_, 0);
2914 } 2914 }
2915 } 2915 }
2916 2916
2917 void TestRunner::RemoveWebPageOverlay() { 2917 void TestRunner::RemoveWebPageOverlay() {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
3088 } 3088 }
3089 3089
3090 void TestRunner::DidLosePointerLockInternal() { 3090 void TestRunner::DidLosePointerLockInternal() {
3091 bool was_locked = pointer_locked_; 3091 bool was_locked = pointer_locked_;
3092 pointer_locked_ = false; 3092 pointer_locked_ = false;
3093 if (was_locked) 3093 if (was_locked)
3094 web_view_->didLosePointerLock(); 3094 web_view_->didLosePointerLock();
3095 } 3095 }
3096 3096
3097 } // namespace content 3097 } // namespace content
OLDNEW
« no previous file with comments | « components/password_manager/core/common/credential_manager_types_unittest.cc ('k') | ios/web/public/web_state/credential.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698