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

Side by Side Diff: extensions/browser/verified_contents_unittest.cc

Issue 535673004: Gallery: Fix scrolling by touch in the mosaic view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « extensions/browser/verified_contents.cc ('k') | extensions/common/extension_l10n_util.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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "extensions/browser/verified_contents.h" 13 #include "extensions/browser/verified_contents.h"
14 #include "extensions/common/extension.h" 14 #include "extensions/common/extension.h"
15 #include "extensions/common/extension_paths.h" 15 #include "extensions/common/extension_paths.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 namespace { 20 namespace {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 EXPECT_FALSE(foo_bar_html.IsAbsolute()); 82 EXPECT_FALSE(foo_bar_html.IsAbsolute());
83 EXPECT_TRUE( 83 EXPECT_TRUE(
84 Base64UrlStringEquals("L37LFbT_hmtxRL7AfGZN9YTpW6yoz_ZiQ1opLJn1NZU", 84 Base64UrlStringEquals("L37LFbT_hmtxRL7AfGZN9YTpW6yoz_ZiQ1opLJn1NZU",
85 contents.GetTreeHashRoot(foo_bar_html))); 85 contents.GetTreeHashRoot(foo_bar_html)));
86 86
87 base::FilePath nonexistent = base::FilePath::FromUTF8Unsafe("nonexistent"); 87 base::FilePath nonexistent = base::FilePath::FromUTF8Unsafe("nonexistent");
88 EXPECT_TRUE(contents.GetTreeHashRoot(nonexistent) == NULL); 88 EXPECT_TRUE(contents.GetTreeHashRoot(nonexistent) == NULL);
89 } 89 }
90 90
91 } // namespace extensions 91 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/verified_contents.cc ('k') | extensions/common/extension_l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698