| Index: chrome/browser/local_discovery/gcd_api_flow_unittest.cc
|
| diff --git a/chrome/browser/local_discovery/gcd_api_flow_unittest.cc b/chrome/browser/local_discovery/gcd_api_flow_unittest.cc
|
| index 4434cb1176b8ab88adc2877a190793afc0b6ac8c..7a25b6849c3dda6fc2d58c77b3a820a78093206b 100644
|
| --- a/chrome/browser/local_discovery/gcd_api_flow_unittest.cc
|
| +++ b/chrome/browser/local_discovery/gcd_api_flow_unittest.cc
|
| @@ -53,8 +53,10 @@ class GCDApiFlowTest : public testing::Test {
|
|
|
| protected:
|
| void SetUp() override {
|
| - token_service_.set_request_context(request_context_.get());
|
| - token_service_.AddAccount(account_id_);
|
| + token_service_.GetFakeOAuth2TokenServiceDelegate()->set_request_context(
|
| + request_context_.get());
|
| + token_service_.GetDelegate()->UpdateCredentials(account_id_,
|
| + "refresh_token");
|
| ui_thread_.Stop(); // HACK: Fake being on the UI thread
|
|
|
| scoped_ptr<MockDelegate> delegate(new MockDelegate);
|
|
|