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

Side by Side Diff: chrome/browser/sync/glue/theme_util_unittest.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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/sync/glue/theme_util.h" 5 #include "chrome/browser/sync/glue/theme_util.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/themes/theme_service.h" 10 #include "chrome/browser/themes/theme_service.h"
11 #include "chrome/browser/themes/theme_service_factory.h" 11 #include "chrome/browser/themes/theme_service_factory.h"
12 #include "chrome/common/extensions/extension.h" 12 #include "chrome/common/extensions/extension.h"
13 #include "chrome/common/extensions/extension_manifest_constants.h" 13 #include "chrome/common/extensions/extension_manifest_constants.h"
14 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 #include "sync/protocol/theme_specifics.pb.h" 15 #include "sync/protocol/theme_specifics.pb.h"
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using extensions::Extension;
20
19 namespace browser_sync { 21 namespace browser_sync {
20 22
21 namespace { 23 namespace {
22 24
23 using ::testing::AnyNumber; 25 using ::testing::AnyNumber;
24 using ::testing::Return; 26 using ::testing::Return;
25 27
26 class MockThemeService : public ThemeService { 28 class MockThemeService : public ThemeService {
27 public: 29 public:
28 MOCK_METHOD0(SetNativeTheme, void()); 30 MOCK_METHOD0(SetNativeTheme, void());
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // TODO(akalin): Mock out call to GetPrefs() under TOOLKIT_GTK. 234 // TODO(akalin): Mock out call to GetPrefs() under TOOLKIT_GTK.
233 235
234 sync_pb::ThemeSpecifics theme_specifics; 236 sync_pb::ThemeSpecifics theme_specifics;
235 SetCurrentThemeFromThemeSpecificsIfNecessary(theme_specifics, 237 SetCurrentThemeFromThemeSpecificsIfNecessary(theme_specifics,
236 &profile); 238 &profile);
237 } 239 }
238 240
239 } // namespace 241 } // namespace
240 242
241 } // namespace browser_sync 243 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/theme_util.cc ('k') | chrome/browser/sync/test/integration/apps_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698