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

Side by Side Diff: sync/test/fake_server/android/fake_server_helper_android.h

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ 5 #ifndef SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_
6 #define SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ 6 #define SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 private: 136 private:
137 virtual ~FakeServerHelperAndroid(); 137 virtual ~FakeServerHelperAndroid();
138 138
139 // Deserializes |serialized_entity_specifics| into |entity_specifics|. 139 // Deserializes |serialized_entity_specifics| into |entity_specifics|.
140 void DeserializeEntitySpecifics(JNIEnv* env, 140 void DeserializeEntitySpecifics(JNIEnv* env,
141 jbyteArray serialized_entity_specifics, 141 jbyteArray serialized_entity_specifics,
142 sync_pb::EntitySpecifics* entity_specifics); 142 sync_pb::EntitySpecifics* entity_specifics);
143 143
144 // Creates a bookmark entity. 144 // Creates a bookmark entity.
145 scoped_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity( 145 std::unique_ptr<fake_server::FakeServerEntity> CreateBookmarkEntity(
146 JNIEnv* env, 146 JNIEnv* env,
147 jstring title, 147 jstring title,
148 jstring url, 148 jstring url,
149 jstring parent_id); 149 jstring parent_id);
150 }; 150 };
151 151
152 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_ 152 #endif // SYNC_TEST_FAKE_SERVER_ANDROID_FAKE_SERVER_HELPER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698