OLD | NEW |
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/files/file_path.h" |
5 #include "base/json/json_reader.h" | 6 #include "base/json/json_reader.h" |
6 #include "chrome/browser/local_discovery/storage/privet_filesystem_attribute_cac
he.h" | 7 #include "chrome/browser/local_discovery/storage/privet_filesystem_attribute_cac
he.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
8 | 9 |
9 namespace local_discovery { | 10 namespace local_discovery { |
10 | 11 |
11 namespace { | 12 namespace { |
12 | 13 |
13 const char kPrivetStorageJSON[] = | 14 const char kPrivetStorageJSON[] = |
14 "{" | 15 "{" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 EXPECT_EQ(12345, info_baz->size); | 54 EXPECT_EQ(12345, info_baz->size); |
54 | 55 |
55 const base::File::Info* info_notfound = cache_.GetFileInfo( | 56 const base::File::Info* info_notfound = cache_.GetFileInfo( |
56 base::FilePath(FILE_PATH_LITERAL("/test/path/foo/notfound.txt"))); | 57 base::FilePath(FILE_PATH_LITERAL("/test/path/foo/notfound.txt"))); |
57 EXPECT_EQ(NULL, info_notfound); | 58 EXPECT_EQ(NULL, info_notfound); |
58 } | 59 } |
59 | 60 |
60 } // namespace | 61 } // namespace |
61 | 62 |
62 } // namespace local_discovery | 63 } // namespace local_discovery |
OLD | NEW |