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

Side by Side Diff: extensions/browser/api/declarative/deduping_factory_unittest.cc

Issue 499383002: Move deduping_factory files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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/api/declarative/deduping_factory.h ('k') | extensions/extensions.gyp » ('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 #include "chrome/browser/extensions/api/declarative/deduping_factory.h" 5 #include "extensions/browser/api/declarative/deduping_factory.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace { 10 namespace {
11 11
12 const char kTypeName[] = "Foo"; 12 const char kTypeName[] = "Foo";
13 const char kTypeName2[] = "Foo2"; 13 const char kTypeName2[] = "Foo2";
14 14
15 // This serves as an example how to use the DedupingFactory. 15 // This serves as an example how to use the DedupingFactory.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 scoped_refptr<const BaseClass> c1_b( 191 scoped_refptr<const BaseClass> c1_b(
192 factory.Instantiate(kTypeName, d1.get(), &error, &bad_message)); 192 factory.Instantiate(kTypeName, d1.get(), &error, &bad_message));
193 193
194 ASSERT_TRUE(c1_a.get()); 194 ASSERT_TRUE(c1_a.get());
195 ASSERT_TRUE(c1_b.get()); 195 ASSERT_TRUE(c1_b.get());
196 EXPECT_NE(c1_a, c1_b); 196 EXPECT_NE(c1_a, c1_b);
197 } 197 }
198 198
199 } // namespace extensions 199 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/declarative/deduping_factory.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698