File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ class UserView {
102102 Mutex* mutex_;
103103 };
104104
105+ // Construct a user view from an existing set of user data.
106+ explicit UserView (const UserData& user_data) : user_data_(user_data) {}
107+
108+ // Exposed for testing.
109+ const UserData& user_data () const { return user_data_; }
110+
105111 // Resets the currently signed-in user with the given user_data and returns
106112 // a writeable view of the user for additional reads or modifications (e.g.,
107113 // to update UserInfos). Optionally, provide out_previous_user to save the
@@ -156,8 +162,6 @@ class UserView {
156162 static Writer GetWriter (AuthData* auth_data);
157163
158164 private:
159- explicit UserView (const UserData& user_data) : user_data_(user_data) {}
160-
161165 static UserView* CastToUser (AuthData* auth_data);
162166
163167 UserData user_data_;
You can’t perform that action at this time.
0 commit comments