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

Side by Side Diff: chrome/browser/sync/test/integration/two_client_wifi_credentials_sync_test.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "chrome/browser/sync/test/integration/sync_test.h" 7 #include "chrome/browser/sync/test/integration/sync_test.h"
8 #include "chrome/browser/sync/test/integration/wifi_credentials_helper.h" 8 #include "chrome/browser/sync/test/integration/wifi_credentials_helper.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 10
11 class TwoClientWifiCredentialsSyncTest : public SyncTest { 11 class TwoClientWifiCredentialsSyncTest : public SyncTest {
12 public: 12 public:
13 TwoClientWifiCredentialsSyncTest() : SyncTest(TWO_CLIENT) {} 13 TwoClientWifiCredentialsSyncTest() : SyncTest(TWO_CLIENT) {}
14 ~TwoClientWifiCredentialsSyncTest() override {} 14 ~TwoClientWifiCredentialsSyncTest() override {}
15 15
16 void SetUpCommandLine(CommandLine* command_line) override { 16 void SetUpCommandLine(base::CommandLine* command_line) override {
17 SyncTest::SetUpCommandLine(command_line); 17 SyncTest::SetUpCommandLine(command_line);
18 command_line->AppendSwitch(switches::kEnableWifiCredentialSync); 18 command_line->AppendSwitch(switches::kEnableWifiCredentialSync);
19 } 19 }
20 20
21 private: 21 private:
22 DISALLOW_COPY_AND_ASSIGN(TwoClientWifiCredentialsSyncTest); 22 DISALLOW_COPY_AND_ASSIGN(TwoClientWifiCredentialsSyncTest);
23 }; 23 };
24 24
25 IN_PROC_BROWSER_TEST_F(TwoClientWifiCredentialsSyncTest, NoCredentials) { 25 IN_PROC_BROWSER_TEST_F(TwoClientWifiCredentialsSyncTest, NoCredentials) {
26 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 26 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
27 ASSERT_TRUE(wifi_credentials_helper::VerifierIsEmpty()); 27 ASSERT_TRUE(wifi_credentials_helper::VerifierIsEmpty());
28 ASSERT_TRUE(wifi_credentials_helper::AllProfilesMatch()); 28 ASSERT_TRUE(wifi_credentials_helper::AllProfilesMatch());
29 } 29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698