OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "base/message_loop/message_loop_proxy.h" | |
6 #include "base/synchronization/waitable_event.h" | 5 #include "base/synchronization/waitable_event.h" |
7 #include "base/threading/thread.h" | 6 #include "base/threading/thread.h" |
8 #include "net/test/spawned_test_server/spawned_test_server.h" | 7 #include "net/test/spawned_test_server/spawned_test_server.h" |
9 #include "net/url_request/test_url_fetcher_factory.h" | 8 #include "net/url_request/test_url_fetcher_factory.h" |
10 #include "net/url_request/url_fetcher_delegate.h" | 9 #include "net/url_request/url_fetcher_delegate.h" |
11 #include "net/url_request/url_request_test_util.h" | 10 #include "net/url_request/url_request_test_util.h" |
12 #include "sync/internal_api/public/base/cancelation_signal.h" | 11 #include "sync/internal_api/public/base/cancelation_signal.h" |
13 #include "sync/internal_api/public/http_bridge.h" | 12 #include "sync/internal_api/public/http_bridge.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 | 14 |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 510 |
512 // Sync thread: Finally run the posted task, only to find that our | 511 // Sync thread: Finally run the posted task, only to find that our |
513 // HttpBridgeFactory has been neutered. Should not crash. | 512 // HttpBridgeFactory has been neutered. Should not crash. |
514 factory->Init("TestUserAgent"); | 513 factory->Init("TestUserAgent"); |
515 | 514 |
516 // At this point, attempting to use the factory would trigger a crash. Both | 515 // At this point, attempting to use the factory would trigger a crash. Both |
517 // this test and the real world code should make sure this never happens. | 516 // this test and the real world code should make sure this never happens. |
518 }; | 517 }; |
519 | 518 |
520 } // namespace syncer | 519 } // namespace syncer |
OLD | NEW |