OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/command_line.h" |
| 6 #include "base/macros.h" |
| 7 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 8 #include "chrome/browser/sync/test/integration/wifi_credentials_helper.h" |
| 9 #include "chrome/common/chrome_switches.h" |
| 10 |
| 11 class SingleClientWifiCredentialsSyncTest : public SyncTest { |
| 12 public: |
| 13 SingleClientWifiCredentialsSyncTest() : SyncTest(SINGLE_CLIENT) {} |
| 14 ~SingleClientWifiCredentialsSyncTest() override {} |
| 15 |
| 16 void SetUpCommandLine(CommandLine* command_line) override { |
| 17 SyncTest::SetUpCommandLine(command_line); |
| 18 command_line->AppendSwitch(switches::kEnableWifiCredentialSync); |
| 19 } |
| 20 |
| 21 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(SingleClientWifiCredentialsSyncTest); |
| 23 }; |
| 24 |
| 25 IN_PROC_BROWSER_TEST_F(SingleClientWifiCredentialsSyncTest, NoCredentials) { |
| 26 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; |
| 27 ASSERT_TRUE(wifi_credentials_helper::VerifierIsEmpty()); |
| 28 ASSERT_TRUE(wifi_credentials_helper::ProfileMatchesVerifier(0)); |
| 29 } |
OLD | NEW |