| 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/app_remoting_report_issue_request.h" | 5 #include "remoting/test/app_remoting_report_issue_request.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 11 #include "net/url_request/test_url_fetcher_factory.h" | 12 #include "net/url_request/test_url_fetcher_factory.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 const char kTestApplicationId[] = "klasdfjlkasdfjklasjfdkljsadf"; | 16 const char kTestApplicationId[] = "klasdfjlkasdfjklasjfdkljsadf"; |
| 16 const char kTestHostId[] = "test_host_id_value"; | 17 const char kTestHostId[] = "test_host_id_value"; |
| 17 const char kAccessTokenValue[] = "test_access_token_value"; | 18 const char kAccessTokenValue[] = "test_access_token_value"; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 169 |
| 169 run_loop_->Run(); | 170 run_loop_->Run(); |
| 170 | 171 |
| 171 // Verify we stopped because of the request completing and not the timer. | 172 // Verify we stopped because of the request completing and not the timer. |
| 172 EXPECT_TRUE(timer_->IsRunning()); | 173 EXPECT_TRUE(timer_->IsRunning()); |
| 173 timer_->Stop(); | 174 timer_->Stop(); |
| 174 } | 175 } |
| 175 | 176 |
| 176 } // namespace test | 177 } // namespace test |
| 177 } // namespace remoting | 178 } // namespace remoting |
| OLD | NEW |