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

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

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia Created 7 years, 2 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) 2012 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_setup_handler.h" 5 #include "chrome/browser/ui/webui/sync_setup_handler.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 30 matching lines...) Expand all
41 using ::testing::ReturnRef; 41 using ::testing::ReturnRef;
42 using ::testing::Values; 42 using ::testing::Values;
43 43
44 typedef GoogleServiceAuthError AuthError; 44 typedef GoogleServiceAuthError AuthError;
45 45
46 namespace { 46 namespace {
47 47
48 MATCHER_P(ModelTypeSetMatches, value, "") { return arg.Equals(value); } 48 MATCHER_P(ModelTypeSetMatches, value, "") { return arg.Equals(value); }
49 49
50 const char kTestUser[] = "chrome.p13n.test@gmail.com"; 50 const char kTestUser[] = "chrome.p13n.test@gmail.com";
51 const char kTestPassword[] = "passwd";
52 51
53 // Returns a ModelTypeSet with all user selectable types set. 52 // Returns a ModelTypeSet with all user selectable types set.
54 syncer::ModelTypeSet GetAllTypes() { 53 syncer::ModelTypeSet GetAllTypes() {
55 return syncer::UserSelectableTypes(); 54 return syncer::UserSelectableTypes();
56 } 55 }
57 56
58 enum SyncAllDataConfig { 57 enum SyncAllDataConfig {
59 SYNC_ALL_DATA, 58 SYNC_ALL_DATA,
60 CHOOSE_WHAT_TO_SYNC, 59 CHOOSE_WHAT_TO_SYNC,
61 SYNC_NOTHING 60 SYNC_NOTHING
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 1068
1070 // This should display the sync setup dialog (not login). 1069 // This should display the sync setup dialog (not login).
1071 handler_->OpenSyncSetup(); 1070 handler_->OpenSyncSetup();
1072 1071
1073 ExpectConfig(); 1072 ExpectConfig();
1074 const TestWebUI::CallData& data = web_ui_.call_data()[0]; 1073 const TestWebUI::CallData& data = web_ui_.call_data()[0];
1075 DictionaryValue* dictionary; 1074 DictionaryValue* dictionary;
1076 ASSERT_TRUE(data.arg2->GetAsDictionary(&dictionary)); 1075 ASSERT_TRUE(data.arg2->GetAsDictionary(&dictionary));
1077 CheckBool(dictionary, "encryptAllData", true); 1076 CheckBool(dictionary, "encryptAllData", true);
1078 } 1077 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_view_browsertest.cc ('k') | chrome/renderer/chrome_content_renderer_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698