Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Side by Side Diff: chrome/browser/ui/webui/sync_internals_ui_unittest.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/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/js_arg_list.h"
14 #include "chrome/browser/sync/js/js_event_details.h"
15 #include "chrome/browser/sync/js/js_test_util.h"
16 #include "chrome/browser/sync/profile_sync_service_mock.h" 13 #include "chrome/browser/sync/profile_sync_service_mock.h"
17 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
18 #include "chrome/test/base/profile_mock.h" 15 #include "chrome/test/base/profile_mock.h"
19 #include "content/browser/tab_contents/test_tab_contents.h" 16 #include "content/browser/tab_contents/test_tab_contents.h"
20 #include "content/public/browser/web_ui_controller.h" 17 #include "content/public/browser/web_ui_controller.h"
21 #include "content/test/test_browser_thread.h" 18 #include "content/test/test_browser_thread.h"
19 #include "sync/js/js_arg_list.h"
20 #include "sync/js/js_event_details.h"
21 #include "sync/js/js_test_util.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 // Rewrite to use WebUI testing infrastructure. Current code below is mostly 25 // Rewrite to use WebUI testing infrastructure. Current code below is mostly
26 // testing how WebUI concrete class serializes function parameters, and that 26 // testing how WebUI concrete class serializes function parameters, and that
27 // SyncInternalsUI::HandleJSEvent/HandleJsReply prefix the given function with 27 // SyncInternalsUI::HandleJSEvent/HandleJsReply prefix the given function with
28 // "chrome.sync." and postfix it with ".fire" or ".handleReply". 28 // "chrome.sync." and postfix it with ".fire" or ".handleReply".
29 // http://crbug.com/110517 29 // http://crbug.com/110517
30 /* 30 /*
31 31
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 ExecuteJavascript(ASCIIToUTF16(kAboutInfoCall))); 211 ExecuteJavascript(ASCIIToUTF16(kAboutInfoCall)));
212 212
213 ListValue args; 213 ListValue args;
214 sync_internals_ui_->OverrideHandleWebUIMessage( 214 sync_internals_ui_->OverrideHandleWebUIMessage(
215 GURL(), "getAboutInfo", args); 215 GURL(), "getAboutInfo", args);
216 } 216 }
217 217
218 } // namespace 218 } // namespace
219 219
220 */ 220 */
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_ui.cc ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698