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

Side by Side Diff: chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
« no previous file with comments | « chrome/browser/webdata/DEPS ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/location.h" 5 #include "base/location.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/autofill/autofill_profile.h" 8 #include "chrome/browser/autofill/autofill_profile.h"
9 #include "chrome/browser/sync/internal_api/read_node_mock.h" 9 #include "chrome/browser/sync/internal_api/read_node_mock.h"
10 #include "chrome/browser/sync/internal_api/syncapi_mock.h"
11 #include "chrome/browser/sync/syncable/syncable.h"
12 #include "chrome/browser/sync/syncable/syncable_mock.h"
13 #include "chrome/browser/webdata/autofill_change.h" 10 #include "chrome/browser/webdata/autofill_change.h"
14 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" 11 #include "chrome/browser/webdata/autofill_profile_syncable_service.h"
15 #include "content/test/test_browser_thread.h" 12 #include "content/test/test_browser_thread.h"
13 #include "sync/syncable/syncable.h"
16 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
18 16
19 using ::testing::_; 17 using ::testing::_;
20 using ::testing::DoAll; 18 using ::testing::DoAll;
21 using ::testing::Eq; 19 using ::testing::Eq;
22 using ::testing::Return; 20 using ::testing::Return;
23 using ::testing::Property; 21 using ::testing::Property;
24 using content::BrowserThread; 22 using content::BrowserThread;
25 class AutofillProfile; 23 class AutofillProfile;
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 profile1.GetMultiInfo(EMAIL_ADDRESS, &values); 398 profile1.GetMultiInfo(EMAIL_ADDRESS, &values);
401 ASSERT_EQ(values.size(), 3U); 399 ASSERT_EQ(values.size(), 3U);
402 EXPECT_EQ(values[0], UTF8ToUTF16("1@1.com")); 400 EXPECT_EQ(values[0], UTF8ToUTF16("1@1.com"));
403 EXPECT_EQ(values[1], UTF8ToUTF16("2@1.com")); 401 EXPECT_EQ(values[1], UTF8ToUTF16("2@1.com"));
404 EXPECT_EQ(values[2], UTF8ToUTF16("3@1.com")); 402 EXPECT_EQ(values[2], UTF8ToUTF16("3@1.com"));
405 403
406 profile1.GetMultiInfo(PHONE_HOME_WHOLE_NUMBER, &values); 404 profile1.GetMultiInfo(PHONE_HOME_WHOLE_NUMBER, &values);
407 ASSERT_EQ(values.size(), 1U); 405 ASSERT_EQ(values.size(), 1U);
408 EXPECT_EQ(values[0], UTF8ToUTF16("650234567")); 406 EXPECT_EQ(values[0], UTF8ToUTF16("650234567"));
409 } 407 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/DEPS ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698