| 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 "chrome/browser/component_updater/test/component_updater_service_unitte
st.h" | 5 #include "chrome/browser/component_updater/test/component_updater_service_unitte
st.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "content/public/browser/resource_request_info.h" | 25 #include "content/public/browser/resource_request_info.h" |
| 26 #include "content/public/browser/resource_throttle.h" | 26 #include "content/public/browser/resource_throttle.h" |
| 27 #include "libxml/globals.h" | 27 #include "libxml/globals.h" |
| 28 #include "net/base/upload_bytes_element_reader.h" | 28 #include "net/base/upload_bytes_element_reader.h" |
| 29 #include "net/url_request/test_url_request_interceptor.h" | 29 #include "net/url_request/test_url_request_interceptor.h" |
| 30 #include "net/url_request/url_request.h" | 30 #include "net/url_request/url_request.h" |
| 31 #include "net/url_request/url_request_test_util.h" | 31 #include "net/url_request/url_request_test_util.h" |
| 32 #include "url/gurl.h" | 32 #include "url/gurl.h" |
| 33 | 33 |
| 34 using content::BrowserThread; | 34 using content::BrowserThread; |
| 35 using std::string; |
| 35 | 36 |
| 36 using ::testing::_; | 37 using ::testing::_; |
| 37 using ::testing::AnyNumber; | 38 using ::testing::AnyNumber; |
| 38 using ::testing::InSequence; | 39 using ::testing::InSequence; |
| 39 using ::testing::Mock; | 40 using ::testing::Mock; |
| 40 | 41 |
| 41 namespace component_updater { | 42 namespace component_updater { |
| 42 | 43 |
| 43 MockServiceObserver::MockServiceObserver() { | 44 MockServiceObserver::MockServiceObserver() { |
| 44 } | 45 } |
| (...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1489 component_updater()->RemoveObserver(&observer2); | 1490 component_updater()->RemoveObserver(&observer2); |
| 1490 | 1491 |
| 1491 test_configurator()->SetLoopCount(1); | 1492 test_configurator()->SetLoopCount(1); |
| 1492 component_updater()->Start(); | 1493 component_updater()->Start(); |
| 1493 RunThreads(); | 1494 RunThreads(); |
| 1494 | 1495 |
| 1495 component_updater()->Stop(); | 1496 component_updater()->Stop(); |
| 1496 } | 1497 } |
| 1497 | 1498 |
| 1498 } // namespace component_updater | 1499 } // namespace component_updater |
| OLD | NEW |