OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/ref_counted.h" | 5 #include "base/ref_counted.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/browser/browser.h" | |
8 #include "chrome/browser/browser_list.h" | 7 #include "chrome/browser/browser_list.h" |
9 #include "chrome/browser/chromeos/cros/mock_update_library.h" | 8 #include "chrome/browser/chromeos/cros/mock_update_library.h" |
10 #include "chrome/browser/chromeos/update_observer.h" | 9 #include "chrome/browser/chromeos/update_observer.h" |
11 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
| 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
13 #include "chrome/test/automation/dom_element_proxy.h" | 13 #include "chrome/test/automation/dom_element_proxy.h" |
14 #include "chrome/test/in_process_browser_test.h" | 14 #include "chrome/test/in_process_browser_test.h" |
15 #include "chrome/test/ui_test_utils.h" | 15 #include "chrome/test/ui_test_utils.h" |
16 | 16 |
17 using ::testing::AnyNumber; | 17 using ::testing::AnyNumber; |
18 using ::testing::InvokeWithoutArgs; | 18 using ::testing::InvokeWithoutArgs; |
19 using ::testing::Return; | 19 using ::testing::Return; |
20 using ::testing::ReturnRef; | 20 using ::testing::ReturnRef; |
21 using ::testing::_; | 21 using ::testing::_; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 chromeos::UpdateObserver* observe = | 112 chromeos::UpdateObserver* observe = |
113 new chromeos::UpdateObserver(browser()->profile()); | 113 new chromeos::UpdateObserver(browser()->profile()); |
114 lib->AddObserver(observe); | 114 lib->AddObserver(observe); |
115 | 115 |
116 FireSuccessSequence(lib.get(), &observers); | 116 FireSuccessSequence(lib.get(), &observers); |
117 FireFailureSequence(lib.get(), &observers); | 117 FireFailureSequence(lib.get(), &observers); |
118 } | 118 } |
119 | 119 |
120 } // namespace | 120 } // namespace |
121 | 121 |
OLD | NEW |