1// Copyright 2015 Keybase, Inc. All rights reserved. Use of
2// this source code is governed by the included BSD license.
3
4// +build !production
5
6package externalstest
7
8import (
9	"github.com/keybase/client/go/externals"
10	"github.com/keybase/client/go/libkb"
11	"github.com/keybase/client/go/pvl"
12	"github.com/keybase/client/go/uidmap"
13)
14
15// SetupTest ignores the third argument.
16func SetupTest(tb libkb.TestingTB, name string, depthIgnored int) (tc libkb.TestContext) {
17	// libkb.SetupTest ignores the third argument (depth).
18	tc = libkb.SetupTest(tb, name, depthIgnored)
19
20	tc.G.SetProofServices(externals.NewProofServices(tc.G))
21	tc.G.SetUIDMapper(uidmap.NewUIDMap(10000))
22	tc.G.SetServiceSummaryMapper(uidmap.NewServiceSummaryMap(1000))
23	pvl.NewPvlSourceAndInstall(tc.G)
24	externals.NewParamProofStoreAndInstall(tc.G)
25	return tc
26}
27