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

Side by Side Diff: chrome/browser/extensions/api/declarative_content/content_action_unittest.cc

Issue 1824993004: Separate gfx_ipc into skia-dependent and non-skia-dependent parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits from tsepez@ Created 4 years, 8 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 (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 #include "chrome/browser/extensions/api/declarative_content/content_action.h" 5 #include "chrome/browser/extensions/api/declarative_content/content_action.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 10 matching lines...) Expand all
21 #include "extensions/browser/extension_system.h" 21 #include "extensions/browser/extension_system.h"
22 #include "extensions/common/extension.h" 22 #include "extensions/common/extension.h"
23 #include "extensions/common/extension_builder.h" 23 #include "extensions/common/extension_builder.h"
24 #include "extensions/common/feature_switch.h" 24 #include "extensions/common/feature_switch.h"
25 #include "extensions/common/value_builder.h" 25 #include "extensions/common/value_builder.h"
26 #include "ipc/ipc_message_utils.h" 26 #include "ipc/ipc_message_utils.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "third_party/skia/include/core/SkBitmap.h" 29 #include "third_party/skia/include/core/SkBitmap.h"
30 #include "ui/gfx/image/image.h" 30 #include "ui/gfx/image/image.h"
31 #include "ui/gfx/ipc/gfx_param_traits.h" 31 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
32 32
33 namespace extensions { 33 namespace extensions {
34 namespace { 34 namespace {
35 35
36 using base::test::ParseJson; 36 using base::test::ParseJson;
37 using testing::HasSubstr; 37 using testing::HasSubstr;
38 38
39 39
40 scoped_ptr<base::DictionaryValue> SimpleManifest() { 40 scoped_ptr<base::DictionaryValue> SimpleManifest() {
41 return DictionaryBuilder() 41 return DictionaryBuilder()
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 " \"instanceType\": \"declarativeContent.RequestContentScript\",\n" 344 " \"instanceType\": \"declarativeContent.RequestContentScript\",\n"
345 " \"js\": [\"script.js\"],\n" 345 " \"js\": [\"script.js\"],\n"
346 " \"matchAboutBlank\": null\n" 346 " \"matchAboutBlank\": null\n"
347 "}"), 347 "}"),
348 &error); 348 &error);
349 ASSERT_FALSE(result.get()); 349 ASSERT_FALSE(result.get());
350 } 350 }
351 351
352 } // namespace 352 } // namespace
353 } // namespace extensions 353 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698