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/ui/webui/sync_internals_ui.h" | 5 #include "chrome/browser/ui/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/sync/js_arg_list.h" | 12 #include "chrome/browser/sync/js_arg_list.h" |
13 #include "chrome/browser/sync/js_event_details.h" | 13 #include "chrome/browser/sync/js_event_details.h" |
14 #include "chrome/browser/sync/js_test_util.h" | 14 #include "chrome/browser/sync/js_test_util.h" |
15 #include "chrome/browser/sync/profile_sync_service_mock.h" | 15 #include "chrome/browser/sync/profile_sync_service_mock.h" |
16 #include "chrome/test/profile_mock.h" | 16 #include "chrome/test/base/profile_mock.h" |
17 #include "content/browser/browser_thread.h" | 17 #include "content/browser/browser_thread.h" |
18 #include "content/browser/renderer_host/test_render_view_host.h" | 18 #include "content/browser/renderer_host/test_render_view_host.h" |
19 #include "content/browser/tab_contents/test_tab_contents.h" | 19 #include "content/browser/tab_contents/test_tab_contents.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; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 ConstructTestSyncInternalsUI(); | 233 ConstructTestSyncInternalsUI(); |
234 | 234 |
235 EXPECT_CALL(*GetTestSyncInternalsUI(), | 235 EXPECT_CALL(*GetTestSyncInternalsUI(), |
236 ExecuteJavascript(ASCIIToUTF16(kAboutInfoCall))); | 236 ExecuteJavascript(ASCIIToUTF16(kAboutInfoCall))); |
237 | 237 |
238 ListValue args; | 238 ListValue args; |
239 GetTestSyncInternalsUI()->OnWebUISend(GURL(), "getAboutInfo", args); | 239 GetTestSyncInternalsUI()->OnWebUISend(GURL(), "getAboutInfo", args); |
240 } | 240 } |
241 | 241 |
242 } // namespace | 242 } // namespace |
OLD | NEW |