forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Added a command line swithc to facilitate incremental checking in of autofill code. 2. Autofill profile model associator. 3. Part of the upgrade code.(The part to take the latest changes from server on the legacy type) Review URL: http://codereview.chromium.org/5126001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67189 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
lipalani@chromium.org
committed
Nov 24, 2010
1 parent
1c06528
commit 54c8336
Showing
27 changed files
with
2,720 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2010 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_ | ||
#define CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_ | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include "chrome/browser/sync/engine/syncapi.h" | ||
#include "testing/gmock/include/gmock/gmock.h" | ||
|
||
class ReadNodeMock : public sync_api::ReadNode { | ||
public: | ||
ReadNodeMock() { } | ||
virtual ~ReadNodeMock() {} | ||
MOCK_METHOD2(InitByClientTagLookup, | ||
bool(syncable::ModelType model_type, const std::string& tag)); | ||
MOCK_CONST_METHOD0(GetAutofillProfileSpecifics, | ||
const sync_pb::AutofillProfileSpecifics&()); | ||
MOCK_CONST_METHOD0(GetId, int64()); | ||
MOCK_CONST_METHOD0(GetFirstChildId, int64()); | ||
MOCK_CONST_METHOD0(GetFirstChild, int64()); | ||
MOCK_CONST_METHOD0(GetSuccessorId, int64()); | ||
MOCK_METHOD1(InitByIdLookup, bool(int64 id)); | ||
}; | ||
#endif // CHROME_BROWSER_SYNC_ENGINE_READ_NODE_MOCK_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2010 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_MOCK_H_ | ||
#define CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_MOCK_H_ | ||
#pragma once | ||
|
||
#include "chrome/browser/sync/engine/syncapi.h" | ||
#include "chrome/browser/sync/syncable/syncable.h" | ||
#include "chrome/browser/sync/syncable/syncable_mock.h" | ||
#include "testing/gmock/include/gmock/gmock.h" | ||
#include "testing/gtest/include/gtest/gtest.h" | ||
|
||
using sync_api::WriteTransaction; | ||
|
||
class MockWriteTransaction : public sync_api::WriteTransaction { | ||
public: | ||
explicit MockWriteTransaction(Directory* directory) | ||
: sync_api::WriteTransaction() { | ||
this->SetTransaction(new MockSyncableWriteTransaction(directory)); | ||
} | ||
}; | ||
|
||
#endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_MOCK_H_ | ||
|
Oops, something went wrong.