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

Side by Side Diff: chromeos/network/onc/onc_test_utils.h

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/network/onc/onc_test_utils.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_TEST_UTILS_H_ 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_TEST_UTILS_H_ 6 #define CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 } 15 }
16 16
17 namespace chromeos { 17 namespace chromeos {
18 namespace onc { 18 namespace onc {
19 namespace test_utils { 19 namespace test_utils {
20 20
21 // Read a JSON dictionary from |filename| and return it as a 21 // Read a JSON dictionary from |filename| and return it as a
22 // DictionaryValue. CHECKs if any error occurs. 22 // DictionaryValue. CHECKs if any error occurs.
23 scoped_ptr<base::DictionaryValue> ReadTestDictionary( 23 scoped_ptr<base::DictionaryValue> ReadTestDictionary(
24 const std::string& filename); 24 const std::string& filename);
25 25
26 // Checks that the pointer |actual| is not NULL but points to a dictionary that 26 // Checks that the pointer |actual| is not NULL but points to a dictionary that
27 // equals |expected| (using Value::Equals). The intended use case is: 27 // equals |expected| (using Value::Equals). The intended use case is:
28 // EXPECT_TRUE(test_utils::Equals(expected, actual)); 28 // EXPECT_TRUE(test_utils::Equals(expected, actual));
29 ::testing::AssertionResult Equals(const base::DictionaryValue* expected, 29 ::testing::AssertionResult Equals(const base::DictionaryValue* expected,
30 const base::DictionaryValue* actual); 30 const base::DictionaryValue* actual);
31 31
32 } // namespace test_utils 32 } // namespace test_utils
33 } // namespace onc 33 } // namespace onc
34 } // namespace chromeos 34 } // namespace chromeos
35 35
36 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_TEST_UTILS_H_ 36 #endif // CHROMEOS_NETWORK_ONC_ONC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/network/onc/onc_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698