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

Side by Side Diff: chrome/browser/sync/profile_sync_service_password_unittest.cc

Issue 120983002: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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 <vector> 5 #include <vector>
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "sync/internal_api/public/read_node.h" 43 #include "sync/internal_api/public/read_node.h"
44 #include "sync/internal_api/public/read_transaction.h" 44 #include "sync/internal_api/public/read_transaction.h"
45 #include "sync/internal_api/public/write_node.h" 45 #include "sync/internal_api/public/write_node.h"
46 #include "sync/internal_api/public/write_transaction.h" 46 #include "sync/internal_api/public/write_transaction.h"
47 #include "sync/protocol/password_specifics.pb.h" 47 #include "sync/protocol/password_specifics.pb.h"
48 #include "sync/test/engine/test_id_factory.h" 48 #include "sync/test/engine/test_id_factory.h"
49 #include "testing/gmock/include/gmock/gmock.h" 49 #include "testing/gmock/include/gmock/gmock.h"
50 50
51 using autofill::PasswordForm; 51 using autofill::PasswordForm;
52 using base::Time; 52 using base::Time;
53 using base::UTF8ToUTF16;
53 using browser_sync::PasswordChangeProcessor; 54 using browser_sync::PasswordChangeProcessor;
54 using browser_sync::PasswordDataTypeController; 55 using browser_sync::PasswordDataTypeController;
55 using browser_sync::PasswordModelAssociator; 56 using browser_sync::PasswordModelAssociator;
56 using content::BrowserThread; 57 using content::BrowserThread;
57 using syncer::syncable::WriteTransaction; 58 using syncer::syncable::WriteTransaction;
58 using testing::_; 59 using testing::_;
59 using testing::AtLeast; 60 using testing::AtLeast;
60 using testing::DoAll; 61 using testing::DoAll;
61 using testing::InvokeWithoutArgs; 62 using testing::InvokeWithoutArgs;
62 using testing::Return; 63 using testing::Return;
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 CreateRootHelper create_root(this, syncer::PASSWORDS); 651 CreateRootHelper create_root(this, syncer::PASSWORDS);
651 StartSyncService(create_root.callback(), 652 StartSyncService(create_root.callback(),
652 base::Bind(&AddPasswordEntriesCallback, this, sync_forms)); 653 base::Bind(&AddPasswordEntriesCallback, this, sync_forms));
653 654
654 std::vector<PasswordForm> new_sync_forms; 655 std::vector<PasswordForm> new_sync_forms;
655 GetPasswordEntriesFromSyncDB(&new_sync_forms); 656 GetPasswordEntriesFromSyncDB(&new_sync_forms);
656 657
657 EXPECT_EQ(1U, new_sync_forms.size()); 658 EXPECT_EQ(1U, new_sync_forms.size());
658 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); 659 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0]));
659 } 660 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698