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

Side by Side Diff: chromeos/network/auto_connect_handler_unittest.cc

Issue 840163004: Enable NetworkConnectionHandler and AutoConnectHandler unittests in debug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | chromeos/network/network_connection_handler_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chromeos/network/auto_connect_handler.h" 5 #include "chromeos/network/auto_connect_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 19 matching lines...) Expand all
30 #include "crypto/scoped_nss_types.h" 30 #include "crypto/scoped_nss_types.h"
31 #include "crypto/scoped_test_nss_db.h" 31 #include "crypto/scoped_test_nss_db.h"
32 #include "net/base/net_errors.h" 32 #include "net/base/net_errors.h"
33 #include "net/base/test_data_directory.h" 33 #include "net/base/test_data_directory.h"
34 #include "net/cert/nss_cert_database_chromeos.h" 34 #include "net/cert/nss_cert_database_chromeos.h"
35 #include "net/cert/x509_certificate.h" 35 #include "net/cert/x509_certificate.h"
36 #include "net/test/cert_test_util.h" 36 #include "net/test/cert_test_util.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 #include "third_party/cros_system_api/dbus/service_constants.h" 38 #include "third_party/cros_system_api/dbus/service_constants.h"
39 39
40 // http://crbug.com/418369
41 #ifdef NDEBUG
42
43 namespace chromeos { 40 namespace chromeos {
44 41
45 namespace { 42 namespace {
46 43
47 const char* kUserHash = "user_hash"; 44 const char* kUserHash = "user_hash";
48 45
49 void ConfigureCallback(const dbus::ObjectPath& result) { 46 void ConfigureCallback(const dbus::ObjectPath& result) {
50 } 47 }
51 48
52 void FailErrorCallback(const std::string& error_name, 49 void FailErrorCallback(const std::string& error_name,
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // Applying the user policy after login would usually trigger connecting to 461 // Applying the user policy after login would usually trigger connecting to
465 // the 'best' network. But the manual connect prevents this. 462 // the 'best' network. But the manual connect prevents this.
466 SetupPolicy(std::string(), // no network configs 463 SetupPolicy(std::string(), // no network configs
467 base::DictionaryValue(), // no global config 464 base::DictionaryValue(), // no global config
468 true); // load as user policy 465 true); // load as user policy
469 EXPECT_EQ(shill::kStateOnline, GetServiceState("wifi0")); 466 EXPECT_EQ(shill::kStateOnline, GetServiceState("wifi0"));
470 EXPECT_EQ(shill::kStateIdle, GetServiceState("wifi1")); 467 EXPECT_EQ(shill::kStateIdle, GetServiceState("wifi1"));
471 } 468 }
472 469
473 } // namespace chromeos 470 } // namespace chromeos
474
475 #endif
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/network_connection_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698