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

Side by Side Diff: chrome/browser/password_manager/native_backend_kwallet_x_unittest.cc

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 #include <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 10 matching lines...) Expand all
21 #include "dbus/mock_bus.h" 21 #include "dbus/mock_bus.h"
22 #include "dbus/mock_object_proxy.h" 22 #include "dbus/mock_object_proxy.h"
23 #include "dbus/object_proxy.h" 23 #include "dbus/object_proxy.h"
24 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 using content::BrowserThread; 27 using content::BrowserThread;
28 using testing::_; 28 using testing::_;
29 using testing::Invoke; 29 using testing::Invoke;
30 using testing::Return; 30 using testing::Return;
31 using webkit_glue::PasswordForm; 31 using webkit::forms::PasswordForm;
32 32
33 namespace { 33 namespace {
34 34
35 // This class implements a very simple version of KWallet in memory. 35 // This class implements a very simple version of KWallet in memory.
36 // We only provide the parts we actually use; the real version has more. 36 // We only provide the parts we actually use; the real version has more.
37 class TestKWallet { 37 class TestKWallet {
38 public: 38 public:
39 typedef std::basic_string<uint8_t> Blob; // std::string is binary-safe. 39 typedef std::basic_string<uint8_t> Blob; // std::string is binary-safe.
40 40
41 TestKWallet() : reject_local_folders_(false) {} 41 TestKWallet() : reject_local_folders_(false) {}
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 983
984 RunDBThread(); 984 RunDBThread();
985 985
986 // The other two copies of the password in different profiles should remain. 986 // The other two copies of the password in different profiles should remain.
987 CheckPasswordForms("Chrome Form Data", expected); 987 CheckPasswordForms("Chrome Form Data", expected);
988 CheckPasswordForms("Chrome Form Data (42)", expected); 988 CheckPasswordForms("Chrome Form Data (42)", expected);
989 expected.clear(); 989 expected.clear();
990 CheckPasswordForms("Chrome Form Data (24)", expected); 990 CheckPasswordForms("Chrome Form Data (24)", expected);
991 } 991 }
992 } 992 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/native_backend_kwallet_x.cc ('k') | chrome/browser/password_manager/password_form_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698