Chromium Code Reviews| Index: chrome/browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc |
| diff --git a/chrome/browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc b/chrome/browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..877b6f53002e1d68652229feb1b2e30c45d49309 |
| --- /dev/null |
| +++ b/chrome/browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "base/command_line.h" |
| +#include "chrome/browser/sync/test/integration/sync_test.h" |
| +#include "chrome/browser/sync/test/integration/wifi_credentials_helper.h" |
| +#include "chrome/common/chrome_switches.h" |
| + |
| +class SingleClientWifiCredentialsSyncTest : public SyncTest { |
| + public: |
| + SingleClientWifiCredentialsSyncTest() : SyncTest(SINGLE_CLIENT) {} |
| + virtual ~SingleClientWifiCredentialsSyncTest() {} |
|
stevenjb
2014/11/13 22:55:36
override
mukesh agrawal
2014/11/14 02:14:54
Done.
|
| + |
| + void SetUpCommandLine(CommandLine* command_line) override { |
| + SyncTest::SetUpCommandLine(command_line); |
| + command_line->AppendSwitch(switches::kEnableWifiCredentialSync); |
| + } |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(SingleClientWifiCredentialsSyncTest); |
| +}; |
| + |
| +IN_PROC_BROWSER_TEST_F(SingleClientWifiCredentialsSyncTest, NoCredentials) { |
| + ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; |
| + ASSERT_TRUE(wifi_credentials_helper::ServiceMatchesVerifier(0)); |
| +} |