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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 5 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "sync/protocol/password_specifics.pb.h" 42 #include "sync/protocol/password_specifics.pb.h"
43 #include "sync/test/engine/test_id_factory.h" 43 #include "sync/test/engine/test_id_factory.h"
44 #include "testing/gmock/include/gmock/gmock.h" 44 #include "testing/gmock/include/gmock/gmock.h"
45 #include "webkit/forms/password_form.h" 45 #include "webkit/forms/password_form.h"
46 46
47 using base::Time; 47 using base::Time;
48 using browser_sync::PasswordChangeProcessor; 48 using browser_sync::PasswordChangeProcessor;
49 using browser_sync::PasswordDataTypeController; 49 using browser_sync::PasswordDataTypeController;
50 using browser_sync::PasswordModelAssociator; 50 using browser_sync::PasswordModelAssociator;
51 using content::BrowserThread; 51 using content::BrowserThread;
52 using syncable::WriteTransaction; 52 using syncer::syncable::WriteTransaction;
53 using testing::_; 53 using testing::_;
54 using testing::AtLeast; 54 using testing::AtLeast;
55 using testing::DoAll; 55 using testing::DoAll;
56 using testing::InvokeWithoutArgs; 56 using testing::InvokeWithoutArgs;
57 using testing::Return; 57 using testing::Return;
58 using testing::SetArgumentPointee; 58 using testing::SetArgumentPointee;
59 using webkit::forms::PasswordForm; 59 using webkit::forms::PasswordForm;
60 60
61 ACTION_P3(MakePasswordSyncComponents, service, ps, dtc) { 61 ACTION_P3(MakePasswordSyncComponents, service, ps, dtc) {
62 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 62 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 CreateRootHelper create_root(this, syncable::PASSWORDS); 567 CreateRootHelper create_root(this, syncable::PASSWORDS);
568 StartSyncService(create_root.callback(), 568 StartSyncService(create_root.callback(),
569 base::Bind(&AddPasswordEntriesCallback, this, sync_forms)); 569 base::Bind(&AddPasswordEntriesCallback, this, sync_forms));
570 570
571 std::vector<PasswordForm> new_sync_forms; 571 std::vector<PasswordForm> new_sync_forms;
572 GetPasswordEntriesFromSyncDB(&new_sync_forms); 572 GetPasswordEntriesFromSyncDB(&new_sync_forms);
573 573
574 EXPECT_EQ(1U, new_sync_forms.size()); 574 EXPECT_EQ(1U, new_sync_forms.size());
575 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); 575 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0]));
576 } 576 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698