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

Side by Side Diff: components/autofill/core/browser/password_autofill_manager_unittest.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "components/autofill/browser/password_autofill_manager.h" 7 #include "components/autofill/core/browser/password_autofill_manager.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace { 10 namespace {
11 11
12 // The name of the username/password element in the form. 12 // The name of the username/password element in the form.
13 const char* const kUsernameName = "username"; 13 const char* const kUsernameName = "username";
14 const char* const kInvalidUsername = "no-username"; 14 const char* const kInvalidUsername = "no-username";
15 const char* const kPasswordName = "password"; 15 const char* const kPasswordName = "password";
16 16
17 const char* const kAliceUsername = "alice"; 17 const char* const kAliceUsername = "alice";
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 EXPECT_FALSE(password_autofill_manager()->DidAcceptAutofillSuggestion( 70 EXPECT_FALSE(password_autofill_manager()->DidAcceptAutofillSuggestion(
71 invalid_username_field, ASCIIToUTF16(kAliceUsername))); 71 invalid_username_field, ASCIIToUTF16(kAliceUsername)));
72 72
73 password_autofill_manager()->Reset(); 73 password_autofill_manager()->Reset();
74 EXPECT_FALSE(password_autofill_manager()->DidAcceptAutofillSuggestion( 74 EXPECT_FALSE(password_autofill_manager()->DidAcceptAutofillSuggestion(
75 username_field(), ASCIIToUTF16(kAliceUsername))); 75 username_field(), ASCIIToUTF16(kAliceUsername)));
76 } 76 }
77 77
78 } // namespace autofill 78 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/password_autofill_manager.cc ('k') | components/autofill/core/browser/password_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698