OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "remoting/test/access_token_fetcher.h" | 5 #include "remoting/test/access_token_fetcher.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "google_apis/gaia/gaia_urls.h" | 13 #include "google_apis/gaia/gaia_urls.h" |
13 #include "net/url_request/test_url_fetcher_factory.h" | 14 #include "net/url_request/test_url_fetcher_factory.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 namespace { | 17 namespace { |
17 const char kAuthCodeValue[] = "test_auth_code_value"; | 18 const char kAuthCodeValue[] = "test_auth_code_value"; |
18 const char kAccessTokenValue[] = "test_access_token_value"; | 19 const char kAccessTokenValue[] = "test_access_token_value"; |
19 const char kRefreshTokenValue[] = "test_refresh_token_value"; | 20 const char kRefreshTokenValue[] = "test_refresh_token_value"; |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 400 |
400 run_loop.Run(); | 401 run_loop.Run(); |
401 | 402 |
402 // Our callback should have been called with empty strings. | 403 // Our callback should have been called with empty strings. |
403 EXPECT_TRUE(access_token_retrieved_.empty()); | 404 EXPECT_TRUE(access_token_retrieved_.empty()); |
404 EXPECT_TRUE(refresh_token_retrieved_.empty()); | 405 EXPECT_TRUE(refresh_token_retrieved_.empty()); |
405 } | 406 } |
406 | 407 |
407 } // namespace test | 408 } // namespace test |
408 } // namespace remoting | 409 } // namespace remoting |
OLD | NEW |