<commit_before>// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef CHROME_PERSONALIZATION

#include "testing/gtest/include/gtest/gtest.h"

#include "base/json_writer.h"
#include "base/scoped_ptr.h"
#include "base/stl_util-inl.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/views/sync/sync_setup_flow.h"
#include "chrome/browser/views/sync/sync_setup_wizard.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/test/browser_with_test_window_test.h"
#include "chrome/test/testing_profile.h"
#include "chrome/test/test_browser_window.h"

static const char* kTestUser = "<EMAIL>";
static const char* kTestPassword = "<PASSWORD>";

// A PSS subtype to inject.
class ProfileSyncServiceForWizardTest : public ProfileSyncService {
 public:
  explicit ProfileSyncServiceForWizardTest(Profile* profile)
    : ProfileSyncService(profile), user_accepted_merge_and_sync_(false),
      user_cancelled_dialog_(false) {
    RegisterPreferences();<commit_msg>Tweak constants used by sync setup wizard unittest. Reviewed by nick.<commit_after>// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef CHROME_PERSONALIZATION

#include "testing/gtest/include/gtest/gtest.h"

#include "base/json_writer.h"
#include "base/scoped_ptr.h"
#include "base/stl_util-inl.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/views/sync/sync_setup_flow.h"
#include "chrome/browser/views/sync/sync_setup_wizard.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/test/browser_with_test_window_test.h"
#include "chrome/test/testing_profile.h"
#include "chrome/test/test_browser_window.h"

static const char* kTestUser = "<EMAIL>";
static const char* kTestPassword = "<PASSWORD>";

// A PSS subtype to inject.
class ProfileSyncServiceForWizardTest : public ProfileSyncService {
 public:
  explicit ProfileSyncServiceForWizardTest(Profile* profile)
    : ProfileSyncService(profile), user_accepted_merge_and_sync_(false),
      user_cancelled_dialog_(false) {
    RegisterPreferences();
{'fraction_non_alphanumeric': 0.11457455770850884, 'fraction_numerical': 0.0, 'mean_word_length': 6.0474777448071215, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6885188', 'n_tokens_mistral': 780, 'n_tokens_neox': 778, 'n_words': 163}