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/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/sync/js_arg_list.h" | 13 #include "chrome/browser/sync/js/js_arg_list.h" |
14 #include "chrome/browser/sync/js_event_details.h" | 14 #include "chrome/browser/sync/js/js_event_details.h" |
15 #include "chrome/browser/sync/js_test_util.h" | 15 #include "chrome/browser/sync/js/js_test_util.h" |
16 #include "chrome/browser/sync/profile_sync_service_mock.h" | 16 #include "chrome/browser/sync/profile_sync_service_mock.h" |
17 #include "chrome/test/base/profile_mock.h" | 17 #include "chrome/test/base/profile_mock.h" |
18 #include "content/browser/browser_thread.h" | 18 #include "content/browser/browser_thread.h" |
19 #include "content/browser/renderer_host/test_render_view_host.h" | 19 #include "content/browser/renderer_host/test_render_view_host.h" |
20 #include "content/browser/tab_contents/test_tab_contents.h" | 20 #include "content/browser/tab_contents/test_tab_contents.h" |
21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 const char kAboutInfoCall[] = | 190 const char kAboutInfoCall[] = |
191 "chrome.sync.getAboutInfo.handleReply({\"summary\":\"SYNC DISABLED\"});"; | 191 "chrome.sync.getAboutInfo.handleReply({\"summary\":\"SYNC DISABLED\"});"; |
192 EXPECT_CALL(*test_sync_internals_ui_, | 192 EXPECT_CALL(*test_sync_internals_ui_, |
193 ExecuteJavascript(ASCIIToUTF16(kAboutInfoCall))); | 193 ExecuteJavascript(ASCIIToUTF16(kAboutInfoCall))); |
194 | 194 |
195 ListValue args; | 195 ListValue args; |
196 test_sync_internals_ui_->OnWebUISend(GURL(), "getAboutInfo", args); | 196 test_sync_internals_ui_->OnWebUISend(GURL(), "getAboutInfo", args); |
197 } | 197 } |
198 | 198 |
199 } // namespace | 199 } // namespace |
OLD | NEW |