OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webui/sync_internals_ui.h" | 5 #include "chrome/browser/webui/sync_internals_ui.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/browser_thread.h" | |
13 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | |
14 #include "chrome/browser/sync/js_arg_list.h" | 12 #include "chrome/browser/sync/js_arg_list.h" |
15 #include "chrome/browser/sync/js_test_util.h" | 13 #include "chrome/browser/sync/js_test_util.h" |
16 #include "chrome/browser/sync/profile_sync_service_mock.h" | 14 #include "chrome/browser/sync/profile_sync_service_mock.h" |
17 #include "chrome/browser/tab_contents/test_tab_contents.h" | 15 #include "chrome/browser/tab_contents/test_tab_contents.h" |
18 #include "chrome/common/render_messages_params.h" | 16 #include "chrome/common/render_messages_params.h" |
19 #include "chrome/test/profile_mock.h" | 17 #include "chrome/test/profile_mock.h" |
| 18 #include "content/browser/browser_thread.h" |
| 19 #include "content/browser/renderer_host/test_render_view_host.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 using browser_sync::HasArgsAsList; | 25 using browser_sync::HasArgsAsList; |
26 using browser_sync::JsArgList; | 26 using browser_sync::JsArgList; |
27 using testing::NiceMock; | 27 using testing::NiceMock; |
28 using testing::Return; | 28 using testing::Return; |
29 using testing::StrictMock; | 29 using testing::StrictMock; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 ConstructTestSyncInternalsUI(); | 218 ConstructTestSyncInternalsUI(); |
219 | 219 |
220 EXPECT_CALL(*GetTestSyncInternalsUI(), | 220 EXPECT_CALL(*GetTestSyncInternalsUI(), |
221 ExecuteJavascript(std::wstring(kAboutInfoCall))); | 221 ExecuteJavascript(std::wstring(kAboutInfoCall))); |
222 | 222 |
223 GetTestSyncInternalsUI()->ProcessWebUIMessage(params); | 223 GetTestSyncInternalsUI()->ProcessWebUIMessage(params); |
224 } | 224 } |
225 | 225 |
226 } // namespace | 226 } // namespace |
OLD | NEW |